---Original Message-
From: siren jones [mailto:[EMAIL PROTECTED]]
Sent: 07 May 2002 17:38
To: [EMAIL PROTECTED]
Subject: Testing for command success
I'd like to test the following command to see if it
ran successfully? Have no idea how or which variable stores
the success of a com
On Tue, 2002-05-07 at 11:37, siren jones wrote:
> I'd like to test the following command to see if it
> ran successfully? Have no idea how or which variable stores
> the success of a command ($!, $], $_ )?
>
> system "tar cvf ../test.tar *.grib";
>
>
> Tried:
>
> if (system "tar cvf ../test.t
jones [mailto:[EMAIL PROTECTED]]
Sent: 07 May 2002 17:38
To: [EMAIL PROTECTED]
Subject: Testing for command success
I'd like to test the following command to see if it
ran successfully? Have no idea how or which variable stores
the success of a command ($!, $], $_ )?
system "tar cvf .
I'd like to test the following command to see if it
ran successfully? Have no idea how or which variable stores
the success of a command ($!, $], $_ )?
system "tar cvf ../test.tar *.grib";
Tried:
if (system "tar cvf ../test.tar *.grib";) { print "\nSuccess!\n";}
got:
"Command not found"