A
A
Alex May2012-04-09 00:12:58
Perl
Alex May, 2012-04-09 00:12:58

Calling a third party program from a perl script

Tell me how to call a third-party program from a perl script and continue without waiting for it to finish?
exec? system?

if possible, an example.
For example, the task is to call from perl ... for example uname and continue without waiting for the end of the called process / program and the output. uname is just an example.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
B
boo1ean, 2012-04-09
@boo1ean

It is possible like this:

system("cmd &")

S
Sergey Savostin, 2012-04-09
@savostin

`/bin/sleep 10 &`

sleep is taken as an example ;)

G
genaev, 2012-06-07
@genaev

for the task you describe it is enough just to use exec()

R
Rozello, 2015-08-14
@Rozello

I would fork + exec

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question