Re: tar command
- From: chas.owens@xxxxxxxxx (Chas Owens)
- Date: Fri, 24 Feb 2006 12:56:07 -0500
On 2/24/06, Irfan J Sayed <irfsayed@xxxxxxxxxx> 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.
.
- References:
- Re: tar command
- From: Chas Owens
- Re: tar command
- From: Irfan J Sayed
- Re: tar command
- Prev by Date: Re: tar command
- Next by Date: Re: tar command
- Previous by thread: Re: tar command
- Next by thread: Re: tar command
- Index(es):
Relevant Pages
|
|