Wayne:
Simply use the
"system" function, or back-tics :
system("Some cmdline");
or
`some
other cmdline`;
There are
differences between the two; check the docs for details.
I usually use
something like
@Results = `cmd-line`;
When I want to
capture the (non-error) results from a command.
-----Original Message-----
From: Wayne Cain [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 23, 2001 10:42 AM
To: [EMAIL PROTECTED]
Subject: [Perl-unix-users] Perl script calls to command line?Hello
I have a perl script that is called from an application where I have access to application system variables and I prompt for other data. Now I need to execute another application command with the data I retrieved in the perl script. The perl script errors stating the command is not recognized and I agree with that error.
How can I have a perl script execute a command-line command in Unix and NT DOS?????
Any help would be greatly appreciated!
Wayne Cain