Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: One for the Wisest Monks

by Zaxo (Archbishop)
on Jun 02, 2002 at 11:14 UTC ( #171008=note: print w/replies, xml ) Need Help??


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,
Zaxo

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!

    Thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://171008]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2023-11-29 22:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?