execute command hard coded in script not work when its in a variable
- by johnnycrash
this works:
nc shldvgfas005 6155 < temp.6153
this hangs:
cmd="nc shldvgfas005 6153 < temp.6153"; $cmd
this gives an error:
cmd="nc shldvgfas005 6153 < temp.6153"; "$cmd"
-bash: nc shldvgfas005 6153 < temp.6153: command not found
HELP!