subroutines in an specific file

2001-10-04 Thread Pascal

as you could see, i'm a beginner
how is it possible to write sub routines in a perl file and to call them
from an other one
thanks


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




How to call a NT module ( ADMIN.EXE from EXCHANGE)

2002-11-06 Thread Pascal TRONQUET
I'm new with PERL and I first looked at the FAQ with ACTIVEPERL.
I've been trying for than one hour to figure out to call ADMIN.EXE from my
PERL.
How to do that ?
Regards.




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




FTP perl script

2001-07-10 Thread Jean-Pascal Dezalay

I wrote a perl script to make a FTP connection to a remote machine like this

#
#!/usr/local/bin/perl
open (FTP, " | ftp -v -n remote.comp.fr");
print FTP, "user username passwd\n";
print FTP, "bin\n";
print FTP, "prompt\n";
print FTP, "ls . remote.list\n";
open (LIST, "remote.list") or die "Impossible to open file"
my @list = 
close (LIST);
close(FTP);
#-
The FTP part of the script works OK. The problem occurs when I want to open the 
file remote.list before the close(FTP); I get "Impossible to open file"

Is it necessary to close the FTP connection to be able to read the file?

Any idea is welcome