Wassercrats
02-15-2006, 03:25 PM
My Perl CGI script does a command line diff (using backticks), but for large files, some of the output is missing. When I do the same diff directly from the command line, I see all of the output. Through CGI, it looks like the output gets cut off at about 200K. It's not a time-out of the script, because after the diff, other parts are executed and more data is added and saved. It looks like there's a time or output limit that's lower for commands issued through CGI scripts than for CGI-only or command-line-only usage.
Should I use Perl's system or exec function and have a command save the output for the script to read rather than have the data passed to the script, or would it be truncated then too? Or maybe have the command execute another script to read the data to keep the script's run-time down?
Should I use Perl's system or exec function and have a command save the output for the script to read rather than have the data passed to the script, or would it be truncated then too? Or maybe have the command execute another script to read the data to keep the script's run-time down?