Topic "Configure command parameters"

Author Message
Hansjrg

Guest


Hello,

I'm using WinSCP to access a Linux machine with a busy box (embeded) instead of a full shell. The busy box does not implement all features for all commands.
E.g. the ls command does not support the option --full-time.

Code:
Command 'ls -la --full-time'
failed with return code 1 and error message
ls: unrecognized option `--full-time'
BusyBox v1.1.3 (2006.08.10-09:26+0000) multi-call binary


Is there a way to configure the command executed?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
WinSCP should try --full-time once and if that faies, it should stop using it. Can you post a complete log file?
_________________
Martin Prikryl
Guest




prikryl wrote:
WinSCP should try --full-time once and if that faies, it should stop using it. Can you post a complete log file?


I had the same problem when accessing a PogoPlug running busybox.

Code:
Command 'pwd'
failed with return code 0 and error message
ls: unrecognized option '--full-time'
BusyBox v1.16.1 (2010-11-30 12:06:37 PST) multi-call binary.

Usage: ls [-1AacCdeFilnpLRrSsTtuvwxXhk] [FILE]....


For some reason the behavior is persistent and even after the first failure it still uses the --full-time option which is not supported by busybox.

For working around with this problem check these WinSCP settings.
a) Open the WinSCP login interface
b) Certify that Advanced Options check box is checked
c) In the left box click on Session
d) Then in the right side select File Protocol: SCP
e) In the left box click on SCP/Shell option (under Enviroment topic)
* If you cannot see the SCP/Shell option return to step b. This option only shows up if Advanced Options is checked.
f) Then in the right side unselect the option "Try to Get Full Timestamp" under Directory Listing box.
* if the checkbox is inaccessible return to step d, you only can change this for SCP protocol.
g) also unselect the option "Lookup User Groups" under Other Options box
h) save your new settings

You should be good to go now without any problems.
It took me hours to figure out how to configure this. Many forums talk about that but the configuration process is a bit tricky if you are not familiar to the WinSCP.

Here are some reference forums I used to troubleshooting this issue.
1) https://winscp.net/eng/docs/ui_login_scp
* look at Directoy Listing topic, it explains that sometimes WinSCP fails in detecting Failure on ls command, that's why you need to manually change the settings.
2) https://forum.openwrt.org/viewtopic.php?id=724
3) http://www.brazilfw.com.br/forum/viewtopic.php?f=3&t=54222

I hope this replay can easily show how to configure WinSCP and workaround with this problem.

Thanks to all,
Marcelino
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License