You
can put a command into single quotes
@output = `$cmd`;
or you
can use system
system("$cmd");
Keep
in mind that if MS-DOS programs can only handle a maximum of 9 arguments where
UNIX can have more.
Also
if you command includes the path and there are spaces you may need to put quotes
around the dir name.
...from...
c:/Program
Files/GreatStuff/application
...to...
c:/"Program
Files"/GreatStuff/application
---
[EMAIL PROTECTED] (Galactic Hero)
Diplomacy: The art
of saying good doggie
while searching for a big rock.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Wayne Cain
Sent: Wednesday, May 23, 2001 9: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