Hi There,
I was wondering how to manage files (ie. rm, cp , mv) based on date last modified and date created.
ie. Say i want to:
mv ./* ./temp/* (where the date created < 29/1/2006 )
or
mv ./* ./temp/* (where the date modified > 27/1/2006 && date modified < 29/1/2006)
Thanks in... (1 Reply)
Whenever i send a mail like: mail <mail id>, a core file is created under /var/spool/mqueue/ path. This is increasing the space of the file system. Why is that core file get created. Does it happens normally. I am getting an errpt error as:
LABEL: CORE_DUMP
IDENTIFIER: B6048838
... (0 Replies)
So, this issue is driving me nuts! I was hoping to get a lending hand here...
I have 2 files:
file1.txt contains:
this is example1
this is example2
this is example3
this is example4
this is example5
file2.txt contains:
example3
example5
Basically, I need a script or command to... (4 Replies)
Hi Friends,
I have to create a new log file everyday and append it with content based on some keywords found in another log file.
Here is what I have tried so far...
grep Error /parentfolder/someLogFile.log >> /parentfolder
/Archive/"testlogfile_error_`date '+%d%m%y'`.txt"
grep error... (6 Replies)
I am trying to rename files based on the created/born date of the file. I Have a total of 4000 files that i am trying to do this with and would like it to be log_yyyymmddhh.gz right now the files are maillog.???.gz.
Can anyone point me in the right direction of how to get this done via scipt?
... (4 Replies)
When I try to remove the file which was created by another user through super user, I am getting the "override protection 644 " meesage.
Could you please anyone help me how will I delete the file without prmpting the override protection.
I have also given the permission (rwx) to the group as... (3 Replies)
1. The problem statement, all variables and given/known data:
When looking for corefiles, include any file with core in its name. (Some UNIX/Linux systems add the PID of the process that created the core to reduce the chances of overwriting an already existing core file that might be needed. The... (6 Replies)
here below is a part of the file
cat fileName.txt
NAME=APP-VA-va_mediaservices-113009-VA_MS_MEDIA_SERVER_NOT_PRESENT-S
FIXED=false
DATE= 2013-02-19 03:46:04.4
PRIORITY=HIGH
RESOURCE NAME=ccm113
NAME=APP-DS-ds_ha-140020-databaseReplicationFailure-S
FIXED=false
DATE= 2013-02-19... (4 Replies)
I am trying to use the two files shown below to either remove or rename contents in one of those files. If in file1.txt $5 matches $5 of file2.txt and the value in $1 of file1.txt is not "No Match" then that value is substituted for all values in $5 and $1 of file2.txt. If however in $1 ... (5 Replies)
We have a user where a process is behaving abnormally and crashing. It would be great if a core file was generated, but I don't see one.
user101671:/apps/ -$lscore -d
compression: on
path specification: on
corefile location: /opt/core
naming specification: off
There is no core file being... (3 Replies)
Discussion started by: netmaster
3 Replies
LEARN ABOUT HPUX
core
core(4) Kernel Interfaces Manual core(4)NAME
core - format of core image file
DESCRIPTION
The HP-UX system writes out a file containing a core image of a terminated process when certain signals are received (see signal(5) for the
list of reasons). The most common causes are memory violations, illegal instructions, floating point exceptions, bus errors, and user-gen-
erated quit signals. The core image file is called and is written in the process's working directory (provided it is allowed by normal
access controls). A process with an effective user ID different from its real user ID does not produce a core image.
The file contains sufficient information to determine what the process was doing at the time of its termination. Core file contents con-
sist of objects that represent different segments of a process. Each object is preceded by a data structure, and each data structure
describes the corresponding object following it. The structure is defined in and includes the following members:
The space and addr members specify the virtual memory address in the process where the described object began. The len member is the
length of the object in bytes.
The following possible values for type are defined in
Process data as it existed at the time the core image was created.
This includes initialized data, uninitialized data, and the heap at the time the core image is generated.
A compiler-dependent data structure containing the exec data structure,
the magic number of the executable file, and the command (see the declaration of the structure in
The version number of the core format produced.
This number changes with each HP-UX release where the core format itself has changed. However, it does not neces-
sarily change with every HP-UX release. can thus be easily used by core-reading tools to determine whether they
are compatible with a given core image. This type is expressed by a four-byte binary integer.
The null-terminated version string associated with the kernel
at the time the core image was generated.
An architecture-dependent data structure
containing per-process information such as hardware register contents. See the declaration of the structure in
Process stack contents at the time the core image was created.
Objects dumped in a image file are not arranged in any particular order. Use information to determine the type of the object that immedi-
ately follows it.
SEE ALSO adb(1), coreadm(1M), coreadm(2), setuid(2), crt0(3), end(3C), signal(5).
core(4)