Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic uploading and file compare

Status
Not open for further replies.

Nevermoor

Programmer
Jul 25, 2003
218
US
--I posted the following on the perl forum without realizing there was also a CGI forum--

Hi,

My cgi-bin and public_html folders are, unfortunately, on seperate servers (both unix). I haven't done much perl recently, but have written a script that generates an html file based on various files in my cgi-bin, but I would like to upload it to my public_html folder so that I can use it without having to resort to IFRAMES. I have a few goals:

1: if the script's new file is the same as the old one, don't upload

2: i'd like to fork off a new process to do the uploading, so that the user doesn't have to wait for the upload to complete before continuing to navigate on the cgi-bin server (which contains, among other things, a YaBB forum), but it's been a long time since I've worked with that set of commands.

Any help, suggestions, or places to look would be greatly appreciated.
 
use Net::FTP or if you have to use ssl Net::SFTP
redirect before you do the ftp stuff... of course then there cant be a message that a error occurred.

checking the file if the file is the same why not upload it also? unless you are going to do alot of FTPing then I would use Net::SSH::perl.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top