in reply to problem running executable in subdirectories
Having removed the extra "`" I end up with the following errors:
sh: -c: line 1: syntax error near unexpected token `;' sh: -c: line 1: `;/somepath/foo'
"Lesser problems include lack of error checking, lack of proper conversion from strings to shell literals, and possibly useless use of backticks."
By error checking do you mean that I should be using print, for example, after the script cd's into each directory as a check to see if the script is indeed cd'ing into each directory?
Could you elaborate on the latter two? Where is the script converting from strings to shell literals and what should I do to remedy it? Are the backticks simply unnecessary or do they need to be replaced by system or exec? Like I said, I'm new to this and I'm learning by trial and error.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: problem running executable in subdirectories
by ikegami (Patriarch) on Jul 07, 2010 at 20:34 UTC |