Rich, Since you are using PERL, I would recommend you use PERL modules like Net::SFTP::Foreign and use the API to code.
The benefits would be: 1) API calls- less troubleshooting will be involved 2) supports most SFTP functions including key authentication 3) less library dependencies- thus easy to install on most platforms. 4) reliable- I use it, it hasn't failed yet. Expect is very good when you can EXPECT the output 100% of the time and that's the catch for such tasks. API calls can be better for you since you already know PERL. Sagar Srivastava ISO, NJ -----Original Message----- From: Linux on 390 Port [mailto:LINUX-390@VM.MARIST.EDU] On Behalf Of Richard Troth Sent: Friday, July 13, 2012 9:34 AM To: LINUX-390@VM.MARIST.EDU Subject: Re: Running SecureFTP in background mode using perl "expect" > I suspect you may be confusing "sftp" with "ftps". "sftp" is in fact > another ssh client, and also can do public/private key authentication > just as ssh and scp. [sigh] Not the first time. The good news then is that use of SSH keys is all that much easier for Eddie's scenario. > "ftps" is another kettle of fish. Right. I don't use either one anymore ... for reasons beyond this thread. > -- Pat -- R; Rick Troth Velocity Software http://www.velocitysoftware.com/ This email is intended for the recipient only. If you are not the intended recipient please disregard, and do not use the information for any purpose. ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/