Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Re: Reminder program

by bsdbudha (Initiate)
on Oct 01, 2001 at 20:22 UTC ( [id://115897]=note: print w/replies, xml ) Need Help??


in reply to Re: Reminder program
in thread Reminder program

well the way i've thought it up, the scripts aren't supposed to close at all.. they: print "go wash your car"; for (;;){ sleep 1209600; print "go wash your car"; } #instead of "go wash your car", its `cat sched.lst` and there is 4 scripts like this that get kicked off within the main script; if possible i want to execute simulatanously.

Replies are listed 'Best First'.
Re:{3} Reminder program
by jeroenes (Priest) on Oct 01, 2001 at 20:30 UTC
    The only way you can pull that off is by forking your scripts. Otherwise they will hang the calling script.

    Of course there are terminal issues, so make sure all the scripts are run in the background, otherwise there is only one script that can print. Also mind you the buffering of your OS.

    It is probably better to keep it all in one script.

    Cheers,

    Jeroen

    PS: You can use simple HTML tags and the CODE tag in your posts.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-03-28 19:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found