in reply to Script which creates 2nd script and runs it
Your shebang (#!) is going to be printed indented... it must be at the very beginning of the line, no whitespace. The heredoc prints literally what follows, including leading whitespace.print <<END; #! /bin/sh if test ! -d /export/home/ss/flowstats/config/$date then mkdir /export/home/ss/flowstats/config/$date fi END
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Script which creates 2nd script and runs it
by Tuna (Friar) on Feb 01, 2001 at 01:34 UTC |