Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Square Box CatDV Worker multiple cmds with variables

  • Worker multiple cmds with variables

    Posted by John Heagy on October 17, 2011 at 9:51 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

    Rolf Howarth replied 14 years, 6 months ago 2 Members · 3 Replies
  • 3 Replies
  • Rolf Howarth

    October 17, 2011 at 10:33 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.

  • John Heagy

    October 17, 2011 at 10:56 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

  • Rolf Howarth

    October 18, 2011 at 7:38 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

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy