On 2/24/06, Irfan J Sayed <[EMAIL PROTECTED]> wrote:
snip
>    `$CT lock vob:$vob_tag`;
snip
>  `$cc stop`;
snip
>  `$cc start`;
snip
>    `$CT unlock vob:$vob_tag`;
snip

I take back my last comment.  You are using the backquotes
incorrectly.   You should only use backquotes when you want to capture
the stdout of the program you are running.  These should all be calls
to the system() function.  Also you should be checking the return code
of the commands to make sure the worked.

if (system("$cc lock vob:$vob_tag")) {
    print stderr "lock failed\n";
    exit 1;
}

if (system("$cc stop") != 0) {
    print stderr "stop failed\n";
    exit 2;
}

etc.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to