Well I'm sending just find using the solution below but there is still one things I need to do. I'd like to check the error code that sendfax returns, I assume it returns one, so I can return a error if the sendfax failed. So far I've not been able to get the return code. Can some one point me in the right direction?
On Jun 18, 2007, at 12:54 PM, John Warren wrote: Thanks to everyone that helped on this. Here was the final solution.
commandparms=$commandparms"add parms here via different part of my program." commandparms=$commandparms" -x \"parm with quoted data\"" commandparms=$commandparms"add more parms here"
commandline="eval sendfax $commandparms"
$commandline
just adding the eval to the string before executing the string did it.
All is now well with the world:)
Thanks again
John
On Jun 16, 2007, at 11:19 AM, Lee Howard wrote: John Warren wrote:
BTW, I assumed that you could since I saw hylafax doing it for things like mv or cp and other such functions.
Yes. This is no problem:
CP=/bin/cp $CP file1 file2
But this is a problem:
CP="/bin/cp file1 file2" $CP
And maybe you need to try "eval" instead of "exec". I don't script shell that way most of the time, so I don't use those much.
Lee.
|