in reply to call a shell script from a perl script

Alternatively, use the "full path" to sh, and the target command. use "-c" to parse from the command options (instead of from the standard input).

These are standard "sh" parameters, nothing to do with perl.

system("/bin/sh -c /bin/uname -a")
Update::

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

    Awesome! Using the full path to the sh worked. Thank you very much your help. Appreciate!
    Posting what worked out for someone who may have similar issue.

    "/bin/sh shell_script.sh"