I have batch files setup to move from a server using SFTP.
My batch files run the SFTP command and use a script
lftp > /tmp/INfilelist00.txt <<EOT
user $user $passwd
this script working fine ,
but The problem I am having is that the LS command returns such a long
listing. It is difficult to find the file. I have tried to limit the
output by sending the LS command in my script like this but I get the
error message below.
ls: Access failed: No such file (hd_auto_07148169)
When I issue the same command interactively in an SFTP session the
command works fine. It just fails when run within a script.
Any help would be appreciated