PipelineFX Forum
Qube! => Jobtypes and Applications => Topic started by: EricD on November 26, 2008, 11:24:25 PM
-
I'm trying to run a single cmdline job which has multiple commands strung together. I've already tried separating the commands with ; and && and get errors in both cases (exit status 64).
I tried running the command in a shell and it works fine so I know my syntax is correct.
What's the proper delimiter to use with Qube?
-
Qube cmdline jobs can use both "&&" and ";" separators. The exact results depend on the operating system. For example, setting the command in a cmdline job to
set && ls
will list the environment and then list the directories in the stdout for a Linux or OSX Worker.
Can you provide an example command that is failing?
-
Here's the command (truncated) as it appears in Qube:
cp "-f" "/Volumes/Projects/spin/bin/shake_scripts/QTDefault/photoJPEG_quicktime.h" "/Volumes/Projects/spin/bin/shake_scripts/include/startup/QTDefault.h" ";" "shake" "/Volumes/Projects/spin/bin/eric/Test/4_CGI_08/2048x1556/4_CGI_08.1-73#####.dpx" "-t" "1-74" "-makemovie"
The jobs are running under OSX
-
It looks like the job was submitted using qbsub from the commandline. You will need to put the entire command set in quotes and also escape with \ any embedded quotes needed.
Undesired results example
$ qbsub echo test this out
Results in
cmdline : echo "test" "this" "out"
Desired results example 1
$ qbsub "echo test this out"
Results in
cmdline : echo test this out
Desired results example 2
$ qbsub "echo test \"this\" out"
Results in cmdline : echo test "this" out
Note: From the QubeGUI Submit->Cmdline Job these bracketing and escaped quotes are not needed.
-
Thanks, that did the trick.