snip > How can I quote the exec line above so what gets passed to /bin/sh is the log > file line > contained in double quotes? snip
Use a different quoting mechanism: exec qq($command "$cmd_msg"); or use a the multiple argument version of exec(): exec $command, $cmd_msg; You may also want to use system instead of exec(). exec() replaces the current process with the one specified. system() issues a fork() followed by an exec(). -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>