FORUMS: list search recent posts

Worker multiple cmds with variables

COW Forums : Square Box CatDV

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
John Heagy
Worker multiple cmds with variables
on Oct 17, 2011 at 9:51:58 pm

How do I run multiple commands in Post-Processing? If I type two commands in line separated by a comma (xxx, xxx) it ignores the second command and uses the (,). If I make a .sh with the comma separated commands the variables are not respected.

Thanks
John


Return to posts index

Rolf Howarth
Re: Worker multiple cmds with variables
on Oct 17, 2011 at 10:33:26 pm

You might be able to do something like

/bin/sh -c "command1; command2"

but I haven't tried it. The best thing is probably to write a shell script that executes the two commands you want, passing your arguments to the shell script and then referring to them as $1, $2 etc. in the shell script.



Return to posts index

John Heagy
Re: Worker multiple cmds with variables
on Oct 17, 2011 at 10:56:13 pm

Hi Rolf,

I can get two commands to run in a shell script but the CatDV variables are ignored. Are you suggesting I set the variables somehow 1st? Wouldn't that require yet another command?

I did manage to do what I wanted by using the 1st execute command in "Conversions" then the 3rd in Post-Processing"

Doing it via a shell script would be great if the CatDV variables expanded.

Thanks
John


Return to posts index


Rolf Howarth
Re: Worker multiple cmds with variables
on Oct 18, 2011 at 7:38:30 am

Where are you writing the CatDV variables such as ${U1}? That syntax is only understood on the command line itself, it won't work within the shell script.

Command 1: myscript.sh

Then a s shell script that contains the following WON'T work:
#!/bin/sh
echo User1 = ${U1}
...


Instead, you need to do
Command 1: myscript.sh ${U1}

#!/bin/sh
echo User1 = $1



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]