Escaping BASH quotes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi guys,

I need to send a command to BASH with quotes ... I have tried escapeshelarg()
and escapeshellcmd ... but somewhere I still have a bug:

here are the BASH commands I need to escape:
echo -e "\rMYCOMMAND\r" > /dev/ttyS1
echo -e ":AB7ASD-02:Command Msg:VF3LPO" > /dev/ttyS1
echo -e "\r\03\r" > /dev/ttyS1

At the moment I am using exec() to send these lines ...

Any pointers?

Thank you

Danny

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux