how to save ls output to log file
Hi,
I'm able to connect to my remote machine via ftp (using script file), upload some files and save this to log. However, when I try to list uploaded files using 'ls' command I only get:
> 2008-10-28 15:40:57.375 LIST -a
< 2008-10-28 15:40:57.406 150 Opening ASCII mode data connection for file list.
< 2008-10-28 15:40:57.406 226-Transfer complete.
< 2008-10-28 15:40:57.406 226 Quotas off
. 2008-10-28 15:40:57.406 Directory listing successful
. 2008-10-28 15:40:57.406 Disconnected from server
As you can see, ls does nothing at all. There is no output from this command in the log file.
I tried using call ls, but I got an error:
> 2008-10-28 15:44:43.547 ls
< 2008-10-28 15:44:43.547 500 LS not understood.
* 2008-10-28 15:44:43.547 (ExtException) LS not understood.
. 2008-10-28 15:44:43.547 Disconnected from server
Is there some other way to list uploaded files? I need this to check their sizes on the remote machine (and compare it to the ones I keep locally).
Thanks in advance
I'm able to connect to my remote machine via ftp (using script file), upload some files and save this to log. However, when I try to list uploaded files using 'ls' command I only get:
> 2008-10-28 15:40:57.375 LIST -a
< 2008-10-28 15:40:57.406 150 Opening ASCII mode data connection for file list.
< 2008-10-28 15:40:57.406 226-Transfer complete.
< 2008-10-28 15:40:57.406 226 Quotas off
. 2008-10-28 15:40:57.406 Directory listing successful
. 2008-10-28 15:40:57.406 Disconnected from server
As you can see, ls does nothing at all. There is no output from this command in the log file.
I tried using call ls, but I got an error:
> 2008-10-28 15:44:43.547 ls
< 2008-10-28 15:44:43.547 500 LS not understood.
* 2008-10-28 15:44:43.547 (ExtException) LS not understood.
. 2008-10-28 15:44:43.547 Disconnected from server
Is there some other way to list uploaded files? I need this to check their sizes on the remote machine (and compare it to the ones I keep locally).
Thanks in advance