On 4/10/06, Sonika Sachdeva <[EMAIL PROTECTED]> wrote: > Hi list, > > I have written some small perl programs for the ftp to site, getting the > data n metadata, processing it and generating the status in a text file. > Now i need to have a web interface to this. > so i have few questions: > 1. perl - cgi or php?
Perl. if you already have the scripts written, just add the CGI to what you already have. See CGI.pm > 2. how do i execute the perl programs on a different system than the web > server. On a system that has has a webserver, but maybe not outward facing, install the scripts as CGI on the other machine, and then write a script that uses LWP, SOAP, etc., to call them on the first machine. Otherwise, write a CGI script to use whatever means you'd normally use to access the remote machine: SSH, rexec, etc. > 3. and also get the status back on the web server Just have your script print a return code. > 4. some programs like ftp to site may take around 1 hr to finish, so how to > tackle this situation. > In a web situation, you can't. Your session will timeout long before the application finishes running. Email the results to the user, or something. If you really expect your user to keep a browser window open that long, use html refresh to periodically reload the webpage. Give the user a little update from time to time if you're so inclined. > This is to start with.... > > I wld really appreciate your help in formulating a solution. > Pick up a good book on web programming, and maybe _CGI Programming with Perl_. HTH, -- jay -------------------------------------------------- This email and attachment(s): [ ] blogable; [ x ] ask first; [ ] private and confidential daggerquill [at] gmail [dot] com http://www.tuaw.com http://www.dpguru.com http://www.engatiki.org values of β will give rise to dom!