File mode badly shown in smbclient (want DAHR,---R,---- etc)

Ralf.Strandell at silja.com Ralf.Strandell at silja.com
Thu Dec 20 03:47:02 GMT 2001


Hi

We are using smbclient to automatically (& remotely) monitor the sizes and
ages of files. The file names contain spaces of course. Some files have
attributes set. Now how do I separate between file attributes and the file
name in the following directory listing?

EXAMPLE:

  smb: Ö> dir *file*
    second file is called AR                    0  Fri Sep 15 12:37:54 2000
    file name with spaces             AR        0  Fri Sep 15 12:37:54 2000

QUESTION:
	does the AR belong to the filename of "second file is called AR"
	or does it say that the attributes of "second file is called" are
"AR"?

	For me it's obvious, but for my scripts it isn't.


FIX:	Smbclient should use this notation: DAHR or -A-R for attributes.
	Could somebody please include this in a future version of Smbclient.


===========================
Ralf Strandell
UNIX System Administrator
Silja Line, Finland
===========================




More information about the samba mailing list