Posted: Sat Dec 09, 2006 7:49 pm
To continue my example:
CmdString is the command to execute, SystemOutput is a variable that will capture any screen output, anything echoed from the command and ReturnCode is the variable which holds the exit code passed back by the command. Note that you can call those three local variables anything you like, these are just examples.
Check the ReturnCode for zero to see if the command executed without error. Write the contents of ScreenOutput to the job's log using DSLogInfo if that would help.
Case is critical! SystemOutput and Systemoutput are two different variables.
Yes, you can do it all in one job.
Yes, that can mean the job will not have any active stages on the canvas. I would suggest you at least put an annotation on the canvas telling people what you are doing in the job and where you are doing it.
Code: Select all
Call DSExecute("UNIX",CmdString,SystemOutput,ReturnCode)
Check the ReturnCode for zero to see if the command executed without error. Write the contents of ScreenOutput to the job's log using DSLogInfo if that would help.
![Exclamation :!:](./images/smilies/icon_exclaim.gif)
Yes, you can do it all in one job.
Yes, that can mean the job will not have any active stages on the canvas. I would suggest you at least put an annotation on the canvas telling people what you are doing in the job and where you are doing it.