No directory listing on some servers

Advertisement

orb
Guest

No directory listing on some servers

When I connect to some servers I sometime don't get directory listing, as I understand it is happening because these servers don't support --full-time option on ls command and WinSCP
can't detect that. This is log when I get directory listing:
. 2009-01-30 02:18:32.046 Listing current directory.
> 2009-01-30 02:18:32.046 ls -la --full-time ; echo "WinSCP: this is end-of-file:$?"
! 2009-01-30 02:18:32.171 ls: illegal option -- -
! 2009-01-30 02:18:32.281 usage: ls [-ABCFGHLPRTWZabcdfghiklmnoqrstuwx1] [file ...]
< 2009-01-30 02:18:32.281 WinSCP: this is end-of-file:1
* 2009-01-30 02:18:32.281 (ETerminal) Command 'ls -la --full-time'
* 2009-01-30 02:18:32.281 failed with return code 1 and error message
* 2009-01-30 02:18:32.281 ls: illegal option -- -
* 2009-01-30 02:18:32.281 usage: ls [-ABCFGHLPRTWZabcdfghiklmnoqrstuwx1] [file ...].
. 2009-01-30 02:18:32.281 Directory listing with --full-time failed, try again regular listing.
. 2009-01-30 02:18:32.281 Listing current directory.
> 2009-01-30 02:18:32.281 ls -la ; echo "WinSCP: this is end-of-file:$?"
< 2009-01-30 02:18:32.437 total 10840

This is log when I don't get listing on same server:
. 2009-01-30 02:18:10.765 Listing current directory.
> 2009-01-30 02:18:10.765 ls -la --full-time ; echo "WinSCP: this is end-of-file:$?"
< 2009-01-30 02:18:11.515 WinSCP: this is end-of-file:1
. 2009-01-30 02:18:11.515 Listing file "..".
> 2009-01-30 02:18:11.515 ls -la -d ".." ; echo "WinSCP: this is end-of-file:$?"
! 2009-01-30 02:18:11.531 ls: illegal option -- -
! 2009-01-30 02:18:11.531 usage: ls [-ABCFGHLPRTWZabcdfghiklmnoqrstuwx1] [file ...]
< 2009-01-30 02:18:11.796 drws--x--x 887 root wheel 16896 Dec 17 04:44 ..
< 2009-01-30 02:18:11.796 WinSCP: this is end-of-file:0
. 2009-01-30 02:18:11.796 Directory listing with --full-time succeed, next time all errors during directory listing will be displayed immediatelly.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

Re: No directory listing on some servers

Next version of WinSCP will allow you to turn off using --fule-time. However I'm not sure if it helps in your case.
BTW, have you tried using SFTP?
_________________
Martin Prikryl

Reply with quote

orb
Guest

SFTP works fine, I also tried disabling "Try to get full timestamp" option and it works too, but still, when executing shell commands that results with error I sometime get strange error messages, like "Error getting name of current remote directory" instead of actual error.
Also, when I connect to that server using PuTTY and manually executing
ls -la --full-time ; echo "WinSCP: this is end-of-file:$?"
I always get output in right order

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

May I get a test account on your server?
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum