Nov 3, 2004, 1:24 PM
Post #1 of 3
about exec command
I am writing a perl script which is always running and keep check for new arrived files. One new files arrives, it will first uninstall the previous version and then start install the new version.
$newVersion = check if new version arrives();
I am using exec to execute the uninstall and install, but after the unInstall finishes, the perl script exit from the while loop, which is not what I want. If I use System instead of exec command, how can I ensure the install starts after the completion of uninstall?
Thanks for any advices.