Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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);


Comment on Re: system calls problem
Replies are listed 'Best First'.
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.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2015-12-02 02:26 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (31 votes), past polls