Sponsored Content
Operating Systems AIX Date not appearing when listing using ls -la Post 302846363 by filosophizer on Friday 23rd of August 2013 02:55:12 PM
Old 08-23-2013
[Solved] Date not appearing when listing using ls -la

Hi everyone,

this strange error suddenly popped up out of no where

when I do a directory listing , the date part doesn't appear

Code:
root@oradb:/backup>ls -la
total 58069304
drwxr-xr-x   3 root     system         4096 23 ▒▒▒ 21:56 .
drwxr-xr-x  44 root     system         1536 23 ▒▒▒ 21:47 ..
-rw-r--r--   1 root     system          260 21 ▒▒▒ 2013  app.txt
-rw-r--r--   1 root     system          243 11 ▒▒▒ 21:46 backupcmd.txt
-rw-r--r--   1 root     system         3075 23 ▒▒▒ 21:56 backuptxt.txt
-rw-r--r--   1 root     system    684900352 23 ▒▒▒ 22:01 bkp_23Aug13_oratech.tgz
-rw-r--r--   1 root     system   9328996379  1 ▒▒▒ 05:08 bkp_28FEB13_oraapp.tgz
-rw-r--r--   1 root     system   1792083276  5 ▒▒▒ 00:25 bkp_4JULY13_oradata2.tgz
-rw-r--r--   1 root     system   15487234272  5 ▒▒▒ 04:54 bkp_4JULY13_oradata.tgz
-rw-r--r--   1 root     system   2438222138  4 ▒▒▒ 22:03 bkp_4JULY13_oratech.tgz
-rw-r--r--   1 root     system          325 21 ▒▒▒ 2013  db.txt
drwxr-xr-x   2 root     system          256 21 ▒▒▒ 2013  lost+found
root@oradb:/backup>


on the other machine

Code:
root@atec:/testbk>ls -la
total 57777968
drwxr-xr-x   3 root     system          256 Jul 20 00:48 .
drwxr-xr-x  24 root     system         4096 Jul 28 23:42 ..
-rw-r--r--   1 root     system     64460876 Jul 20 00:45 backup.txt
-rw-r--r--   1 root     system     54742027 Jul 20 00:46 backup11apr13.txt
-rw-r--r--   1 root     system           76 Jul 20 00:46 backupcmd.txt
-rw-r--r--   1 root     system   29463099245 Jul 20 07:08 bk_20JUL13_atec.tgz
drwxr-xr-x   2 root     system          256 Jul 20 00:36 lost+found
root@atec:/testbk>


checking the errpt of the machine where date is not appearing

Code:
# errpt | more
root@oradb:/backup>errpt | more
IDENTIFIER TIMESTAMP  T C RESOURCE_NAME  DESCRIPTION
173C787F   0801112613 I S topsvcs        Possible malfunction on local adapter
BE0A03E5   0619125613 P H sysplanar0     ENVIRONMENTAL PROBLEM
BE0A03E5   0619125113 P H sysplanar0     ENVIRONMENTAL PROBLEM
0BA49C99   0619125013 T H scsi3          SCSI BUS ERROR
BE0A03E5   0608203113 P H sysplanar0     ENVIRONMENTAL PROBLEM
0BA49C99   0608203013 T H scsi3          SCSI BUS ERROR
BE0A03E5   0605184713 P H sysplanar0     ENVIRONMENTAL PROBLEM
BE0A03E5   0605184513 P H sysplanar0     ENVIRONMENTAL PROBLEM
BE0A03E5   0529020013 P H sysplanar0     ENVIRONMENTAL PROBLEM

anyone came across such problem and where should I begin to troubleshoot it ?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

long listing of files up to a given date

Hi I would like to a long list of files up to a given date. I've tried: ls -al > filelist but this command gives me all the files. I've also have tried the find command: find . -mtime -10 -type f -print > filelist This gives me information on active file within the past 10 days and... (2 Replies)
Discussion started by: rlh
2 Replies

2. Shell Programming and Scripting

listing files that do not belong to current date

How do we list all the file names in a directory that does not belong to current date. (1 Reply)
Discussion started by: esh.mohan
1 Replies

3. UNIX for Dummies Questions & Answers

listing files that does not belong to current date

How do we list all the file names in a directory that does not belong to current date. (3 Replies)
Discussion started by: esh.mohan
3 Replies

4. UNIX for Advanced & Expert Users

Listing tomorrows date

I am writing a script to strip data from a log, strip last month and empty the log for the comming month. It works great at the moment, but during testing I decided to change the date to 12/31 and when I ran it, it did not find tomorrows date. Further testing revealed that no dbl digit month would... (2 Replies)
Discussion started by: theninja
2 Replies

5. UNIX for Dummies Questions & Answers

Listing file name and date

Hello. I want to make an unix script which create a file with the name and the date of creation of the different files that there are in a directory. Can do you please help me? Thank you in advance. (3 Replies)
Discussion started by: Jfka
3 Replies

6. Shell Programming and Scripting

Listing files that belong to a certain year date?

I'm trying to list files, first by size and I'm using something like this ls -l|awk '{print $5,$6,$7,$8,$9|"sort -nr"}'|more Now I'd like to just do the same listing but only for files with the year 2009 in the $8 field or even anything less than 2011. (5 Replies)
Discussion started by: NycUnxer
5 Replies

7. UNIX for Dummies Questions & Answers

Listing based on User and Date

listing based on user. I have files in some folder that come from many user -rwxrwxr-x 1 ratih pbank 4827112 Jun 8 08:37 S92TA-8.sgy -rwxrwxr-x 1 ratih pbank 4724568 Jun 8 08:37 S92TA-6.sgy -rwxrwxr-x 1 ratih pbank 4929656 Jun 8 08:37 S92TA-19.sgy -rwxrwxr-x 1 ratih ... (4 Replies)
Discussion started by: muhnandap
4 Replies

8. Shell Programming and Scripting

Date listing in a date range

Solaris 10 ksh88 Sorry for re-hashing some of this, but I can't find a proper solution in the forums. Starting with /a/archive containing (on and on date formatted directories) 20060313 20080518 20100725 20121015 20060314 20080519 ... (1 Reply)
Discussion started by: moesplace
1 Replies

9. Shell Programming and Scripting

Confused with date - listing

Hello,:) Can anyone help me out in giving a script for my requirement please.. I have a number of files in a directory like somenumber.0100 somenumber.0130 somenumber.0159 somenumber.0300 somenumber.0330 somenumber.0525 . . . here, the number after the dot is the time (hhmm) I... (6 Replies)
Discussion started by: Raghu8985
6 Replies

10. UNIX for Beginners Questions & Answers

Need help with listing file name and modified date on a huge directory

hi, We have a huge directory that ha 5.1 Million files in it. We are trying to get the file name and modified timestamp of the most recent 3 years from this huge directory for a migration project. However, the ls command (background process) to list the file names and timestamp is running for... (2 Replies)
Discussion started by: subbu
2 Replies
SCAN(1)                                                              [nmh-1.5]                                                             SCAN(1)

NAME
scan - produce a one line per message scan listing SYNOPSIS
scan [+folder] [msgs] [-clear | -noclear] [-form formatfile] [-format string] [-header | -noheader] [-width columns] [-reverse | -nore- verse] [-file filename] [-version] [-help] DESCRIPTION
Scan produces a one-line-per-message listing of the specified folder or messages. Each scan line contains the message number (name), the date, the "From:" field, the "Subject" field, and, if room allows, some of the body of the message. For example: 15+ 10/05 crocker nned <<Last week I asked some of 16- 10/05 crocker message id format <<I recommend 18 10/06 brien Re: Exit status from mkdir 19 10/07*brien "scan" listing format in nmh The `+' on message 15 indicates that it is the current message. The `-' on message 16 indicates that it has been replied to, as indicated by a "Replied:" component (produced by the -annotate switch to the repl command). The `*' on message 19 indicates that no "Date:" header was present. The time of last modification of the message is given instead. If there is sufficient room left on the scan line after the subject, the line will be filled with text from the body, preceded by "<<", and terminated by ">>" if the body is sufficiently short. Scan actually reads each of the specified messages and parses them to extract the desired fields. During parsing, appropriate error messages will be produced if there are format errors in any of the messages. By default, scan will decode RFC-2047 (MIME) encoding in these scan listings. Scan will only decode these fields if your terminal can natively display the character set used in the encoding. You should set the MM_CHARSET environment variable to your native character set, if it is not US-ASCII. See the mh-profile(5) man page for details about this environment variable. The switch -reverse, makes scan list the messages in reverse order. The -file filename switch allows the user to obtain a scan listing of a maildrop file as produced by packf. This listing includes every message in the file (you can't scan individual messages). The switch -reverse is ignored with this option. The switch -width columns may be used to specify the width of the scan line. The default is to use the width of the terminal. The -header switch produces a header line prior to the scan listing. Currently, the name of the folder and the current date and time are output (see the HISTORY section for more information). If the -clear switch is used and scan's output is directed to a terminal, then scan will consult the environment variables $TERM and $TERM- CAP to determine your terminal type in order to find out how to clear the screen prior to exiting. If the -clear switch is used and scan's output is not directed to a terminal (e.g., a pipe or a file), then scan will send a formfeed prior to exiting. For example, the command: (scan -clear -header; show all -show pr -f) | lpr produces a scan listing of the current folder, followed by a formfeed, followed by a formatted listing of all messages in the folder, one per page. Omitting "-show pr -f" will cause the messages to be concatenated, separated by a one-line header and two blank lines. To override the output format used by scan, the -format string or -form file switches are used. This permits individual fields of the scan listing to be extracted with ease. The string is simply a format string and the file is simply a format file. See mh-format(5) for the details. In addition to the standard mh-format(5) escapes, scan also recognizes the following additional component escapes: Escape Returns Description body string the (compressed) first part of the body dtimenow date the current date folder string the name of the current folder If no date header is present in the message, the function escapes which operate on {date} will return values for the date of last modifica- tion of the message file itself. This feature is handy for scanning a draft folder, as message drafts usually aren't allowed to have dates in them. scan will update the nmh context prior to starting the listing, so interrupting a long scan listing preserves the new context. nmh purists hate this idea. FILES
$HOME/.mh_profile The user profile PROFILE COMPONENTS
Path: To determine the user's nmh directory Alternate-Mailboxes: To determine the user's mailboxes Current-Folder: To find the default current folder SEE ALSO
inc(1), pick(1), show(1), mh-format(5) DEFAULTS
`+folder' defaults to the current folder `msgs' defaults to all `-format' defaulted as described above `-noheader' `-width' defaulted to the width of the terminal CONTEXT
If a folder is given, it will become the current folder. HISTORY
Prior to using the format string mechanism, -header used to generate a heading saying what each column in the listing was. Format strings prevent this from happening. BUGS
The argument to the -format switch must be interpreted as a single token by the shell that invokes scan. Therefore, one must usually place the argument to this switch inside quotes. The value of each component escape is set by scan to the contents of the first message header scan encounters with the corresponding compo- nent name; any following headers with the same component name are ignored. MH.6.8 11 June 2012 SCAN(1)
All times are GMT -4. The time now is 09:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy