in reply to call a shell script from a perl script
These are standard "sh" parameters, nothing to do with perl.
Update::system("/bin/sh -c /bin/uname -a")
To properly pass the "-a" parameter to uname above, the command needs to be written as :
system("/bin/sh -c \"/bin/uname -a\"") ; # or (more readable): system(qq(/bin/sh -c "/bin/uname -a"))
If your eyes hurt after you drink coffee, you have to take the spoon out of the cup.
-Norm Crosby
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: call a shell script from a perl script
by nirvanaPL (Novice) on Jan 15, 2014 at 16:54 UTC |