Good morning Rick,
It's SFTP. We have data transmissions that are FTP, SFTP with password and SFTP without password where we have the public key
on the target server. The problem is when running in the background("&") mode where the "password" prompts don't seems to be
presented to the running script where "except" to see, rather came back to the terminal session.
my $expect = Expect->spawn("sftp -o 'batchMode no' -b $BATCH $user\@$host ");
$expect->expect(30,"password:");
$expect->send("$password\n");
$expect->interact;
$rc=$?;
Thanks and Regards,
Eddie
P.S.
Did we had a great time at the VM workshop!
-----Original Message-----
From: Linux on 390 Port [mailto:
LINUX-390@VM.M...] On Behalf Of Richard Troth
Sent: Friday, July 13, 2012 9:34 AM
To:
LINUX-390@VM.M...
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/
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions, send email to
LISTSERV@VM.M... 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/
Please consider the environment before printing this email.
Visit our website at
http://www.nyse.com
****************************************************
Note: The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext.
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to
LISTSERV@VM.M... 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/
opensubscriber is not affiliated with the authors of this message nor responsible for its content.