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.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |