Re: question on escaping shell command

2014-05-16 Thread Chris Knipe
Thanks for all the suggestions and replies guys. After further investigation, it seems the bug is rather in the shell program itself. Even if reading the values from a text file instead of STDIN, it still refuses to parse anything beyond a # character. I've altered my code to use Authen::Radius

Re: question on escaping shell command

2014-05-16 Thread Simon Foutaiz
You can take a look at the IPC::Cmd module that should remove some pain when dealing with system commands through Perl. https://metacpan.org/pod/IPC::Cmd On Thu, May 15, 2014 at 3:10 PM, Chris Knipe wrote: > Hi All, > > I'm having a bit of a strange issue executing a system command through >

Re: question on escaping shell command

2014-05-15 Thread Robert Wohlfarth
On Thu, May 15, 2014 at 3:10 AM, Chris Knipe wrote: > I'm having a bit of a strange issue executing a system command through > perl. > The system command reads a bunch of parameters through STDIN, and responds > via STDOUT. The problem is that special commands (notably the "#" and "!" > characte