I am attempting to write a sequencer to execute a shell script on a compute node of our grid. I execute the sequencer.sh in the first stage and then parse the name of the selected compute node with:
Field(sequencer_sh.$CommandOutput," ", 1) in a user variable activity stage. Finally in another execute command activity I issue the following:
ssh #UserVariables_Activity_20.server# #DI_Project_Directory_PSet.$DI_Script_Dir_Parm#/#ScriptName#
ScriptName being the name of the script that I want to exeute on the compute node.
The command as resolved is:
ssh server03-prv: /...path/script/test.sh
I am receiving the following error at run time:
sh: server03-prv:: Name or service not known
Where is that : (colon) coming from? and how do I get rid of it?
Thanks,
Error: Name or service not known
Moderators: chulett, rschirm, roy
No other jobs in the sequence. But, I solved the problem.
I finally opened my eyes and noticed that the colon was part of the output string from the sequencer.sh script. So, I just changed the delimiter in the FIELD command I was using to parse out the 3 values from a space to a colon and ..... voila!
That's what I get for copying things exactly out of the Redbook.
I finally opened my eyes and noticed that the colon was part of the output string from the sequencer.sh script. So, I just changed the delimiter in the FIELD command I was using to parse out the 3 values from a space to a colon and ..... voila!
That's what I get for copying things exactly out of the Redbook.
Bob
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: