iMisspell has asked for the wisdom of the Perl Monks concerning the following question:
I have a script (to decompress files) on my local server which i'll ssh to and run (from a local desktop). While running the script via ssh i can see the state of how its working and read the 'print' commands i have in it.
That same script can also be run via 'cgi' from my home apache server (passing the path to the file which needs to be decompressed via url string).
While running the script via 'cgi' (local web server) i can not read any of the 'print' out-put in-till the script is completly finished.
Question
Is there a way to 'print' the out-put of the script while its running in 'cgi', in "real-time" just like it is being run via ssh/terminal window (and not effect how it is currently working in ssh) ?
The reason for running the script via my web server is i do not want to login to the server all the time. I have a second script in the desktops 'nautilus-scripts' folder which lets me "right-click" on a file that is mapped to a shared folder on the server and send the filename off to my browsers url.
I want all the work being done on the decompressed files to take place on the server, i do not want any of the work load to be done on the desktop.
Thanks for any guidance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: 'print' to cgi like in terminal ("real-time") ?
by zentara (Cardinal) on Jun 28, 2012 at 20:14 UTC | |
|
Re: 'print' to cgi like in terminal ("real-time") ?
by tobyink (Canon) on Jun 29, 2012 at 08:23 UTC | |
by iMisspell (Novice) on Jun 30, 2012 at 01:59 UTC | |
by Anonymous Monk on Jun 29, 2012 at 08:36 UTC |