Perl Question - Assynchronousness
Jorge Almeida
jjalmeida at gmail.com
Fri Oct 26 00:11:36 PDT 2007
On Fri, 26 Oct 2007, James McDonald wrote:
> I have a perl script which scavenges file off a network share and then
> formats and feeds them in an ERP system.
>
> What I would like to do is at the moment I feed the file into the ERP I would
> like to run another perl script which will wait for 10 seconds and then check
> to see that the ERP has spat the correct information out.
>
> However I want the calling script to continue processing after it calles the
> called script.
>
> I have been looking at system() but am unsure of how to tell it to launch the
> script and just keep going without waiting for a reply.
>
> Any ideas?
>
Putting the script into background?
What I mean is
perl -e 'system("sleep 30 &");'
as opposed to
perl -e 'system("sleep 30");'
Not sure whether this is the best solution...
--
Jorge Almeida
More information about the Linux-users
mailing list