Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: system calls problem

by snadra (Scribe)
on May 27, 2004 at 08:21 UTC ( #356831=note: print w/ replies, xml ) Need Help??


in reply to system calls problem

Try to execute the whole path.
If that does not help, maybe the programm you try to call is causing the problem. system() is doing a fork, and the process is waitng for the child process to complete.
If you don't need to fork (the return) try exec(), wich does not do a return:
exec('C\pogramms\programm.exe', $file_to_open);

snadra


Comment on Re: system calls problem
Re: Re: system calls problem
by Aragorn (Curate) on May 27, 2004 at 08:39 UTC
    Be aware of the fact that the reason that exec doesn't return is that the called program is run instead of the caller. The program image of your script (i.e. the Perl interpreter running your script in memory) is replaced with the execed program.

    Arjen

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2014-09-22 17:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (198 votes), past polls