in reply to Closing a system process after file creation (was: One for the Wisest Monks)

Your system call is waiting for input from stdin. You could call 'touch' instead, but how about a pure perl solution?

{ my $fh; open $fh, '>', "/path/to/${num}.bat" or die $!; }
You are likely to want a more economical representation of your counter, sooner or later. You should think about flock when you design it.

After Compline,

Replies are listed 'Best First'.
Re: Re: One for the Wisest Monks
by TexasTess (Beadle) on Jun 02, 2002 at 11:29 UTC
    I've tried this..or a reasonable facimile...I'll try again when I go back to work...perhaps I was making a permissions oversight.

    This command will create a file called $(num).bat? in the directory listed in the path?

    Sure hope it works!! I'll let ya know tomorrow!