Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Problems with ftp scripts

by AgentM (Curate)
on May 11, 2001 at 23:51 UTC ( #79826=note: print w/ replies, xml ) Need Help??


in reply to Problems with ftp scripts

Since the problem involves a server timeout which you have problems getting around, I suggest that you use system calls. Under normal circumstances, of course, this is hardly "good", but since you really need the power of fork under windows (if I understand correctly), then your best bet would be to interface with a shell-based FTP client. This might involve writing to a temporary file to upload, but it circumvents the timeout on the scripts (perhaps a config option for this?) and will get the job done with minimum hassle. The script looks good and, as you say, it works fine until a timeout, so you've probably nailed the problem alot of other people have had in FTP via web. Good luck!

AgentM Systems nor Nasca Enterprises nor Bone::Easy nor Macperl is responsible for the comments made by AgentM. Remember, you can build any logical system with NOR.


Comment on Re: Problems with ftp scripts
Re: Re: Problems with ftp scripts
by LiTinOveWeedle (Scribe) on May 12, 2001 at 11:46 UTC
    THX AgentM,
    I think so, that problem is in forking into separate proces. And you'r right I running script under winnt4 an win9x platform. I use same technique which merlyn describe in his Web Techniques Column 20. But no succes.

    Anybody had same problem with forking under win32?
    Whole problem is that my webserver probably terminate both child and parent processes, so ftp transfer is interupted before it can end.

    Any suggestions? I will be glad if there can be other way than using ext. ftp program.
    I will try to separate script into two independent scripts and start ftp script by system call. This should work but this isn't purist solution.

    Li Tin O've Weedle
    mad Tsort's philosopher

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://79826]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (15)
As of 2014-07-22 17:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (121 votes), past polls