in reply to system() behaviour within object(class) instance
When you call a program with the ampersand you're asking for this process to be run in background. This also means that your system() call returns immediately, leaving the process to do its work undisturbed. Now, some web server installation limit the total time of a running instance, so when the program you call WITHOUT the ampersand goes beyond these limits it will cause the calling process to be terminated by the web server. As a consequence, the spawned program itself would be terminated, and you'd miss your data inside the database.
Now, if this actually happens, your CGI script would die at the point you call system(), but unluckly we don't know what your "not working" means...
Flavio (perl -e 'print(scalar(reverse("\nti.xittelop\@oivalf")))')
Don't fool yourself.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: system() behaviour within object(class) instance
by Robot (Novice) on Apr 24, 2005 at 20:13 UTC | |
by polettix (Vicar) on Apr 26, 2005 at 08:42 UTC |