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]