Ombongi.Moraa has asked for the wisdom of the Perl Monks concerning the following question:
I use this command to call the python script and pass arguments;
$output="sudo /usr/bin/python /home/processLog.py '$name' '$age' '$text' '$id' "; return `$output`However, as it is, bad problems arise when the $text variable contains single or double quotes. How can I pass the variables wholly esp with quotes within them?
Thanks in advance.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Call Python script and pass arguments from Perl script (quotemeta)
by LanX (Saint) on May 15, 2013 at 11:01 UTC | |
Re: Call Python script and pass arguments from Perl script
by aitap (Curate) on May 15, 2013 at 11:02 UTC | |
Re: Call Python script and pass arguments from Perl script
by ambrus (Abbot) on May 16, 2013 at 08:42 UTC |
Back to
Seekers of Perl Wisdom