i want to pop up an alert box using perl script. my requirement is.
i am using a html page which calls a perl script. this perl script calls a shell script.. after the shell script ends its execution, i am using exit 0 to terminate the shell script successfully and exit 1 to terminate the shell script when an error occurs in the shell script. i want to capture this exit code in the perl script. and depending on the value 0 or 1, i want to pop up an alert box with success or failure message respectively. any1 is having any idea. its urgent please..
ya i used system(), but i need to generate the output of the shell script to a log file also. i do not know how to send the output of the shell script to a log file from system command.