RE: Illegal seek

2002-02-21 Thread Tony McGuinness
Hi Johannes, Thanks for your response, it now works. Regards, Tony -Original Message- From: Johannes Franken [mailto:[EMAIL PROTECTED]] Sent: 20 February 2002 20:40 To: Perl List (E-mail) Subject: Re: Illegal seek On Tue, Feb 19, 2002 at 12:05:40PM -, Tony McGuinness wrote: >

RE: system

2002-02-19 Thread Tony McGuinness
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 "

system

2002-02-19 Thread Tony McGuinness
Hi, 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. I have similar scripts that are w

RE: How to count lines in an output file

2002-02-19 Thread Tony McGuinness
-Original Message- From: Tim Lago [mailto:[EMAIL PROTECTED]] Sent: 19 February 2002 14:31 To: [EMAIL PROTECTED] Subject: How to count lines in an output file I've written a really simple script that opens a file, reads for specific line of text and copies the matches to an output file,

Illegal seek

2002-02-19 Thread Tony McGuinness
Hi there, I checked up on system and rewrote the line that calls system. Now I have: @args = ("$Basedir/ftpscr"); system(@args) == 0 or die "cannot execute ftpscr $!"; but the script is not executed. No errors are returned. Any ideas? Tony =

Illegal seek

2002-02-19 Thread Tony McGuinness
Hi there, I am getting the following: cannot execute ftpscr Illegal seek at ./getfile.pl line 31. from a simple Perl script (below). The system command is returning the error and the pathname points to the current directory. I cannot seem to find any documentation on this error. Has anyont enco