Hi, I have a Perl script, which copies two files from a CD and untars the first file- print "Content-type: text/html\n\n"; print <<HTML_BLOCK; <head> </head> <body> HTML_BLOCK $cmd = "cp $cddir/$file1 $installdir"; $op = system($cmd); print "\nCopying file 1..."; $cmd = "cp $cddir/$file2 $installdir"; $op = system($cmd); print "\nCopying file 2..."; $cmd = "tar -zxf $installdir/$file1"; $op = system($cmd); print "Untaring file 1..."; ..... Now size of files file1 and file2 are around 50 megs, so it takes sometime for them to be copied from the cd to the install folder. The script executes fine when I run it from the command line - both files are copied and first file is untarred. However, when I execute the script from a browser such as Firefox, the execution stops after the first file is copied and the only output I observer in the browser is- Copying file 1... When I exeute the script again from the browser by refreshing the page, the second file is copied and the browser stops again. The browser output looks like this- Copying file 1... Copying file 2... When I refresh the browser for the second time, file 1 is untarred and the script execution proceeds. Copying file 1... Copying file 2... Untaring file 1... Any ideas on why the browser is acting in such a weird way? It seems that the child process created by the system() call takes over the browser. Any help will be highly appreciated. Thanks.
-Neelay.
