in reply to call exe on windows via script
Try separating your command and parameters, (see the docs for the system() call), like this:
This helps because Perl then takes care of any quoting and shell-escaping needed for your system's shell.system('C:\\perlscripts\\foo.exe', '-c', $color, '-f', $fromNode, '-t' +, $textmsg);
If that fails, you'll want to check the special variables $! and $? (their use for this is explained in the docs for system()). For further debugging, you'll want to post the results, as well as any warnings generated during your run (you are using strict and warnings, right?).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: call exe on windows via script
by dtharby (Acolyte) on Jul 11, 2005 at 10:54 UTC | |
by radiantmatrix (Parson) on Jul 11, 2005 at 14:16 UTC | |
by dtharby (Acolyte) on Jul 11, 2005 at 14:34 UTC |