Subject: | |
From: | |
Reply To: | |
Date: | Tue, 6 Mar 2001 17:05:18 +0100 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
ad 1.
depends on the script used to make these files. It looks alike that these
direct PC connections (probably Samba/iX ?) which do not logon ... or which
didn't succeed to logon.
ad 2.
MPEX LISTF,3 or any other localized LISTF format could do this better and
easier than any work in Posix.
Nevertheless, a Posix way in the shell: piping to cut and using the 0 in
byte count as delimiter. will fail for all the logons you asked for in #1.
ls -ltr /SYSTEMS/LastLogon | cut -f 2- -d 0
Will not work this way out of MPE using sh or ls directly: the piping sign
will become misinterpreted as part of ls!
Best regards, Andreas Schmidt, CSC, Germany
Robert Mills <[log in to unmask]>@RAVEN.UTC.EDU> on
06/03/2001 04:21:22 PM
Please respond to Robert Mills <[log in to unmask]>
Sent by: HP-3000 Systems Discussion <[log in to unmask]>
To: [log in to unmask]
cc:
Subject: [HP3000-L] 2 Posix Questions
I have a command file that executes the following command:
xeq /bin/ls "-ltr /SYSTEMS/LastLogon"
and gives the following output:
total 0
-rw-rw-rw- 1 DSHAW.PIN2000 SYSTEMS 0 Aug 24 2000
_DSHAW_PIN2000
-rw-rw-rw- 1 PLTEMP.WIN2000 SYSTEMS 0 Aug 30 2000
_PLTEMP_WIN2000
-rw-rw-rw- 1 SUE.WIN2000 SYSTEMS 0 Aug 31 2000 _SUE_WIN2000
-rw-rw-rw- 1 DOM.ECOMM SYSTEMS 0 Aug 31 2000 _DOM_ECOMM
-rw-rw-rw- 1 SPURS.PIN2000 SYSTEMS 0 Sep 4 2000
_SPURS_PIN2000
-rw-rw-rw- 1 LISA.ECOMM SYSTEMS 0 Sep 14 15:28 _LISA_ECOMM
-rw-rw-rw- 1 ROUND.PIN2000 SYSTEMS 0 Sep 18 18:22
_ROUND_PIN2000
-rw-rw-rw- 1 MNGR.AD2000 SYSTEMS 0 Sep 20 15:38
JEFF_MNGR_AD2000
-rw-rw-rw- 1 CSGW.PIN2000 SYSTEMS 0 Sep 22 10:05
_CSGW_PIN2000
-rw-rw-rw- 1 0 SYSTEMS 0 Sep 27 10:19 _ANNA_WIN2000
-rw-rw-rw- 1 ANDREA.WIN2000 SYSTEMS 0 Sep 28 19:04
_ANDREA_WIN2000
-rw-rw-rw- 1 0 SYSTEMS 0 Sep 29 16:38 _LEEB_WIN2000
-rw-rw-rw- 1 0 SYSTEMS 0 Oct 2 10:04 _KELLY_PIN2000
-rw-rw-rw- 1 PAULH.WINTEST SYSTEMS 0 Oct 2 19:39
_PAULH_WINTEST
-rw-rw-rw- 1 SNAPPR.PIN2000 SYSTEMS 0 Oct 3 18:32
_SNAPPR_PIN2000
-rw-rw-rw- 1 JANE.PIN2000 SYSTEMS 0 Oct 5 10:06
_JANE_PIN2000
-rw-rw-rw- 1 0 SYSTEMS 0 Oct 6 10:14 _ASHLEY_WIN2000
-rw-rw-rw- 1 MITZI.WIN2000 SYSTEMS 0 Oct 9 15:23
_MITZI_WIN2000
-rw-rw-rw- 1 STORES.WINTEST SYSTEMS 0 Oct 10 12:45
AUTO_STORES_WINTEST
<big snip>
Question 1:
Why has column 3 got a 0 instead of a user.account name in some of the
entries?
Question 2:
How do I stop the first 5 columns from displaying (I only need the date,
time and filename)? Do I need to use awk on the output from ls?
regards,
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|Robert W.Mills (Systems Development Manager) |
|Windsong Services, St. Mary Cray, ENGLAND |
|Tel : +44 (0)1689 870622 x3005 |
|Fax : +44 (0)1689 899026 |
|Email: [log in to unmask] |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
|