gabriel rosenkoetter on 19 Nov 2007 19:31:20 -0000 |
At 2007-11-19 11:08 -0500, lists@linuxnotes.net <lists@linuxnotes.net> wrote: > I have a bash script that I need to run from within a Perl script and > capture the output. My script works fine until it hits a parentheses in > an argument and then I get: > > sh: -c: line 0: syntax error near unexpected token `(' It'd help to see the code, but I think that you need to escape the parens. (Remember characters that are special for Perl will be processed and eaten within double-quotes and backticks when not escaped, but never touched within single-quotes.) -- gabriel rosenkoetter gr@eclipsed.net Attachment:
pgpT9Lg0bg9HV.pgp ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|