in reply to Script which creates 2nd script and runs it

Well, I think your problem is here:
print <<END; #! /bin/sh if test ! -d /export/home/ss/flowstats/config/$date then mkdir /export/home/ss/flowstats/config/$date fi END
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.

--isotope
http://www.skylab.org/~isotope/

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
    Nope. That's not it.