shell scripting: help appreciated

Atom Powers atom.powers at gmail.com
Mon Jul 3 15:39:50 UTC 2006


On 7/3/06, no at spam@mgedv.net <nospam at mgedv.net> wrote:

>
> if i change the line
>         /bin/sh -c subprogram.sh $h_val1 $h_val2 $h_opt1;
> to
>         echo /bin/sh -c subprogram.sh $h_val1 $h_val2 $h_opt1;
> the program loops for all records in the foo.conf correctly.
>
> if i remove the "echo" keyword, the sub-script get's executed,
> but the shell terminates as if there were lesser records in
> the foo.conf file!


try:

eval /bin/sh -c "subprogram.sh $h_val1 $h_val2 $h_opt1";


-- 
--
Perfection is just a word I use occasionally with mustard.
--Atom Powers--


More information about the freebsd-questions mailing list