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.
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.