Jump to content

How to change (or fix?) output format for 'ls' command?


Recommended Posts

Guest TomaszG
Posted

Hello. I've installed on my Hero dropbear server to use WinSCP to transfer files between hero <-> PC. Connection is working fine but I have a small problem with directory listing. WinSCP accept this format of output:

<type><permissions> <inode> <owner> <group> <size> <timestamp> <filename>[ -> <target>]

http://winscp.net/eng/docs/message_unexpec...rectory_listing

but 'ls -la' in my hero returns information WITHOUT <inode> column. How to fix it (WinSCP works fine with Modaco Custom ROM so it is possible <_<). My hero have 1.15.3 version of busybox installed.

Thanks for any answers.

Guest TomaszG
Posted
ls -lai should print with inode <_<

Maybe it should but it doesn't :-P Output is the same like with ls -la. Can anyone paste an example output for ls -la on Modaco ROM?

  • 2 weeks later...
Guest kendon
Posted

maybe a little late, but fwiw this is from mcr3.1:

kendon@nxnet:~$ ssh hero -p 2222

kendon@hero's password: 

# ls -la

drwxrwxrwx	1 2000	 2000		 2048 Mar 11 21:04 .

drwxrwx--x	1 1000	 1000		 2048 Mar  7 22:18 ..

drwxrwxrwx	1 0		0			2048 Mar 15 22:46 bin

-rw-rw-rw-	1 10091	10091		 134 Mar 17 13:09 dnsmasq.conf

-rw-r--r--	1 0		0			   1 Mar 17 13:12 dnsmasq.leases

-rw-r--r--	1 0		0			   5 Mar 17 13:10 dnsmasq.pid

drwxrwxrwx	1 2000	 2000		 2048 Mar 16 16:38 rights

-rw-rw-rw-	1 10091	10091		8102 Mar 15 22:46 tiwlan.ini

drwxrwx--x	1 2000	 2000		 2048 Mar 16 16:38 tmp

# ls -lai

	384 drwxrwxrwx	1 2000	 2000		 2048 Mar 11 21:04 .

	  1 drwxrwx--x	1 1000	 1000		 2048 Mar  7 22:18 ..

	392 drwxrwxrwx	1 0		0			2048 Mar 15 22:46 bin

	386 -rw-rw-rw-	1 10091	10091		 134 Mar 17 13:09 dnsmasq.conf

	388 -rw-r--r--	1 0		0			   1 Mar 17 13:12 dnsmasq.leases

	387 -rw-r--r--	1 0		0			   5 Mar 17 13:10 dnsmasq.pid

	390 drwxrwxrwx	1 2000	 2000		 2048 Mar 16 16:38 rights

	385 -rw-rw-rw-	1 10091	10091		8102 Mar 15 22:46 tiwlan.ini

	389 drwxrwx--x	1 2000	 2000		 2048 Mar 16 16:38 tmp

try using the busybox binary from 3.1, i think it needs to be compiled with the right options.

Posted (edited)
maybe a little late, but fwiw this is from mcr3.1:<snip>

try using the busybox binary from 3.1, i think it needs to be compiled with the right options.

Actually, I get exactly the same formatting of output on 3.2

[Edit:]Um yes, but so what! Soz, I thought the OP was having a problem with MCR 3.2 - just realised he has already said it works fine under MCR, so this post is redundant. Shame we can't delete our own posts.

Edited by zorm
Guest shenshang
Posted

ive been having problems with MCR's busybox...dunno why, works fine on other ROMs though =\

Posted
ive been having problems with MCR's busybox...dunno why, works fine on other ROMs though =\

What problems?

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.