There are basically three ways to call an external program from Perl.

system()--
        Launches the program given as a parameter and returns the exit code.
`` (backticks) --
        Launches the program inside the backticks and returns the output.
exec()--
        Launches the program given as a parameter and exits.

E.g
==========
if($code = system("c:\\winnt\\system32\\program.exe")){
  print "something must have gone wrong.  The exit code was $code.";
}

@output = `c:\\winnt\\system32\\program.exe`;
print @output;

-----Original Message-----
From: Pascal TRONQUET [mailto:pascal.tronquet@;socgen.com]
Sent: Wednesday, November 06, 2002 8:06 AM
To: [EMAIL PROTECTED]
Subject: How to call a NT module ( ADMIN.EXE from EXCHANGE)


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]

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

Reply via email to