Search Results

Search: Posts Made By: Little
16,334
Posted By Little
while calling the sftp script you can redirect...
while calling the sftp script you can redirect the output of sftp to a local file and then grep the lines starting with -

./sftp-script > ls_output

cat ls_output | grep "^-" > listFile

if...
16,334
Posted By Little
if you want t o use expect then create a separate...
if you want t o use expect then create a separate file for your sftp program with no extension. for example:
sftp-script
#!/usr/bin/expect
spawn /usr/bin/sftp [username]@[servername]
expect...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 10:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy