--- lerameur <[EMAIL PROTECTED]> wrote: > Hello, > > I want to write a perl script that invokes unix command. Some of the > command can take a long time to process, I have many commands I want > to invoke. Lets say the first command can take one minute to > process, how can I make sure the second command will not start until > the irst one is complete, >
Hi, This is really descided by your application,not perl itself. say you do something like, system("/path/bin/httpd"); no one then would know when apache will exit. if your first command is working in front-end,system() can block until the command is finished,then you execute the second command.otherwise if your command is working in backend like httpd,to control its runtime is hard.you may need to get its process id,and always monitor this id,until the process id is not alive,you execute the follow commands. ____________________________________________________________________________________ Sick of deleting your inbox? Yahoo!7 Mail has free unlimited storage. http://au.docs.yahoo.com/mail/unlimitedstorage.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/