Hi Brett,

Thanks for the response.

I have changed the $! to $? and I was using -w and strict at the
top of my script.

I cannot help the disclaimer. Sorry.

Regards,

Tony

-----Original Message-----
From: Brett W. McCoy [mailto:[EMAIL PROTECTED]]
Sent: 19 February 2002 17:03
To: Tony McGuinness
Cc: Perl List (E-mail)
Subject: Re: system


On Tue, 19 Feb 2002, Tony McGuinness wrote:

> I have the following code and the system call just does not happen.
>
> Furthermore there is no error message.
>
> $arg = "$Basedir/ftpscr";
> system($arg) == 0 or die "cannot execute ftpscr $!";
>
> At this stage $Basedir/ftpscr exists and is an executable ksh
> script.

When using system, you should use $? in your error message -- I don't
think system sets !$.  Are *any* error messages being printed?  Do you
have -w and 'use strict' at the top of your script?

-- Brett
(PS. The disclaimer at the bottom of your message was longer than the
message itself.  Very bad form.  Such disclaimers are unnecessary, but if
your company automatically appends them, perhaps you should post from a
different address).
                                          http://www.chapelperilous.net/
------------------------------------------------------------------------
If man is only a little lower than the angels, the angels should reform.
                -- Mary Wilson Little


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
=====================================================================
DISCLAIMER

1. The information contained in this E-mail is confidential. 
   It is intended only for the stated addressee(s) and access 
   to it by any other person is unauthorised. 
   If you are not an addressee, you must not disclose, copy, 
   circulate or in any other way use or rely on the information 
   contained in this E-mail. Such unauthorised use may be unlawful. 
   If you have received this E-mail in error, please inform us 
   immediately and delete it and all copies from your system.

2. The views expressed in this E-mail are those of the author, 
    and do not represent the views of AMT-Sybex Group Ltd., its 
    associates or subsidiaries, unless otherwise expressly indicated.
    In the avoidance of doubt, the insertion of the name of AMT-Sybex 
    Group Ltd., its associate or subsidiary under the name of the sender 
    may constitute an express indication that the views stated in the Mail 
    are those of the named company.
=====================================================================
For more information on the AMT Sybex group visit: http://www.amt-sybex.com 



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to