Error: Name or service not known

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
bobyon
Premium Member
Premium Member
Posts: 200
Joined: Tue Mar 02, 2004 10:25 am
Location: Salisbury, NC

Error: Name or service not known

Post by bobyon »

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,
Bob
lstsaur
Participant
Posts: 1139
Joined: Thu Oct 21, 2004 9:59 pm

Post by lstsaur »

Any other job in the job sequence?
bobyon
Premium Member
Premium Member
Posts: 200
Joined: Tue Mar 02, 2004 10:25 am
Location: Salisbury, NC

Post by bobyon »

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. :-)
Bob
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Well done on the sharp eyesight!
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
bobyon
Premium Member
Premium Member
Posts: 200
Joined: Tue Mar 02, 2004 10:25 am
Location: Salisbury, NC

Post by bobyon »

Honestly, it had more to do with increasing the font size on the monitor than it did with "sharp eyesight" 8)
Bob
Post Reply