
July 6th, 2010, 10:05 AM
|
|
Registered User
|
|
Join Date: Jul 2010
Posts: 1
Time spent in forums: 12 m
Reputation Power: 0
|
|
|
Redirect SFTP Output
Hi,
We need to convert below ftp code into sftp but we are unable to handle output redirection properly.
FTP Code:
ftp host1 < a.txt 2>&1
where a.txt contains series of ftp commands:
get run_dir/log/abc.log abc.log
ls -l abc.label
When we used the sftp instead of ftp, I could not redirect the output of ls -l command to abc.label file.
Is there any known way to do that. Thanks in advance for your replies.
|