Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
sftp Korn shell script
Name: Bob Hicks Date: March 18, 2003 at 12:39:58 Pacific OS: AIX 4.3 CPU/Ram: UNIX
Comment:
I am trying to write a Korn shell script to use sftp to transfer data from one system to another. I cannot seem to figure out how to send the required password to log on to the remote system. I have tried: including PASS ${PASSWD} in the param_file, using the command FTP_OUT="sftp -v -b param_file ${USER}@${HOST} ${PASSWD}"
and many variations. Every time I submit the script I get back an interactive message asking me to manually enter the password. Do you know how to send the password programmatically? Generally this is the Korn shell command string I am using: FTP_OUT="sftp -v -b param_file ${USER}@${HOST}" eval "${FTP_OUT}" >> ${XFR_LOG} 2>&1
param_file contains the command to be used such as pwd put file_name file_name bye Thanks for you help.
Summary: hi, I have a question. I'm doing a Korn Shell script. I want to find out the list of users who have either logged in or logged out during the period(like 20 minutes or etc). Thank you for helping.(...
Summary: Hi, anyone have any korn shell script that do a recursive files count from parent directory and below? example: /etc/ls -l|wc -l /etc/rc2.d/ls -l|wc -l /etc/rc2.d/a/ls -l |wc -l Thanks ...