On Feb 19, Tony McGuinness said:
>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 encountered
>the same.
As John said, Perl has a module for FTP.
>system("chmod +x ftpscr");
Not only does Perl have a chmod() function, but I wrote File::chmod which
allows you to say
chmod "+x", "ftpscr";
if you like using symbolic modes instead.
>system("/usr/users/tony/perl/proj1/ftpscr") or die "cannot execute ftpscr
>$!";
system() returns zero on SUCCESS. Check its documentation at 'perldoc -f
system'.
>DISCLAIMER
[...]
Ugh.
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
<stu> what does y/// stand for? <tenderpuss> why, yansliterate of course.
[ I'm looking for programming work. If you like my work, let me know. ]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]