RE: Testing for command success

2002-05-07 Thread Timothy Johnson
---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

Re: Testing for command success

2002-05-07 Thread Chas Owens
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

RE: Testing for command success

2002-05-07 Thread Ho, Tony
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 .

Testing for command success

2002-05-07 Thread siren jones
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"