>-----Original Message----- >From: Chris Charley [mailto:char...@pulsenet.com] >Sent: Monday, April 09, 2012 9:02 >To: beginners@perl.org >Subject: [Marketing Mail] Re: Use of SFTP::Foreign with backend processing >and having problems ( not apparent within the code ) in getting remote SFTP >to quit it's processes > >> >> >>""Wagner, David --- Sr Programmer Analyst --- CFS"" wrote in message >> >> >>I am running AS 5.10.1 on Windows XP SP3 and attempting to use >>sFTP within my processing communicating to MVS/IBM. >> >>What I am trying to do is to do so many gets, then undef the >>variable and re-login and to continue on to end of processing. I did >>this with the FTP processing and never had any problems. What I am >>seeing is when I do the above and go through the login/undef say three >>times, it has the remote processes all still open. If I run through 5 >>times, then I have five processes open. But if I close the script >>completely, then all the processes quit as expected. >> >>How would I go about figuring out what is missing in making >>these processes quit naturally through the above process ( per the doc, >>using the undefined or going out of scope is the equivalent of quit >>under FTP). I have even tried disconnect along with the undefined and >>this does nothing differently. I am using 'my variables', strict, >>warnings, etc, but uncertain how to figure out what is happening... >> >>Thoughts?? >> >> If you have any questions and/or problems, please let me know. >> Thanks. >> >>Wags ;) >>David R. Wagner >> > > >This is from the 'Bugs' section of that module: > >BUGS >These are the currently known bugs: > >- Doesn't work on VMS: >The problem is related to IPC::Open3 not working on VMS. Patches are >welcome! > >- Dirty cleanup: >On some operating systems, closing the pipes used to comunicate with the >slave SSH process does not terminate it and a work around has to be >applied. >If you find that your scripts hung when the $sftp object gets out of scope, >try setting $Net::SFTP::Foreign::dirty_cleanup to a true value and also >send >me a report including the value of $^O on your machine and the OpenSSH >version. > >From version 0.90_18 upwards, a dirty cleanup is performed anyway when the >SSH process does not terminate by itself in 8 seconds or less. > Well, I am running 1.69, so it should be doing the dirty cleanup. The processing is not hanging, but leaves the processes on the report machine up UNTIL I fully exit the script. At this point, I have provided a separate run for my Sys Admin who has run some dumps to provide to the vendor. So thanks for the thoughts. I really appreciate it.. I will let the list know what I find out, if and when I do... Wags ;)
>Not sure if this is your problem, >Chris > > >-- >To unsubscribe, e-mail: beginners-unsubscr...@perl.org >For additional commands, e-mail: beginners-h...@perl.org >http://learn.perl.org/ > -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/