03-01-2010
Hi
My script needs to work on many flavours of unix.
file_name=$1 Name of the file
archive_dir=$2 Archive directory
retention_period=$3 retention period in days
regards
10 More Discussions You Might Find Interesting
1. HP-UX
Can anyone post a sample log rotate and archive configuration on HP-UX?
I really don't know how to do that... :( (3 Replies)
Discussion started by: untamed
3 Replies
2. Shell Programming and Scripting
Hello all.
Due to some reason I can not use HUP to rotate needed log files.
So I use the standard method:
cp $file $file.1
cat /dev/null > $file
But if Java application in this time writing the output to $file,
in the beginning of it appears many "^@^@^@^@^@^@".
How to avoid it? Or how... (6 Replies)
Discussion started by: mirusnet
6 Replies
3. AIX
Hi guys,
I've googled this quite a bit, and tried searching on these forums, but haven't found a solution to my problem. I wanted to inquire about AIX's audit subsystem - more specifically, how to rotate its log file.
So far I've been able to find how to rotate AIX syslog log files, and I... (2 Replies)
Discussion started by: w1r3d
2 Replies
4. Shell Programming and Scripting
Hi Can anyone assist me, I am trying to compate the size of a logfile to a maximum size 1000 and delete if exceeds the limit.
The problem I am getting is the command not found for the line
if ( $LOGNAME_SIZE >= $MAXSIZE); then
Appreciate your response.
Script:
LOGDIR="/home/... (6 Replies)
Discussion started by: sureshcisco
6 Replies
5. Solaris
HI,
What is log rotation in Solaris ? What are the essential steps to perform log rotation in Solaris? (1 Reply)
Discussion started by: Revathi@1
1 Replies
6. Solaris
hi folk,
need advise regarding the log rotation, i have the logadm set at
30 2 * * * /usr/sbin/logadm
so it supposed to rotate once per day, but now it rotated twice!
but someone my log will rotate at 2:30 AM, but then another 2 hours later, it creates a new and rotate a new log again,... (2 Replies)
Discussion started by: dehetoxic
2 Replies
7. UNIX for Dummies Questions & Answers
Hi Guys,
Good morning, I just want to know and collect ideas on this one. Regarding rotation of logs as I've observed it's not consistently functioning. I have a server with 8 Partitions, each partition has a dedicated directory for the logs that is needed and I set it every 5mins (300secs) the... (1 Reply)
Discussion started by: rymnd_12345
1 Replies
8. Solaris
Hi All!
I seem to have a problem with log rotation, unless I am doing something wrong, I have type the following command for testing purposes to see if the -s option works but he did not:
logadm -w /var/adm/messages -C 8 -c -s 512k -t '/var/adm/messages.$n' -z 1
the file is now at this... (7 Replies)
Discussion started by: fretagi
7 Replies
9. Shell Programming and Scripting
I have an application that rotate its log once it reaches 100mb and it keeps a total of 24 logs. I am trying to write a script to run daily to tar up the previous day logs files and move them to a different directory. here is a long listing of the logs in the directory:
-rw-r--r-- 1 user1 ... (6 Replies)
Discussion started by: e_mikey_2000
6 Replies
10. Shell Programming and Scripting
Hi all,
could any provide me a solution for the below requirement.
I have two files namely abc.log.1 and abc.log.2
The above files have time stamp as Dec 08 and Dec 09
I need to rename the files as abc.log.1_20141208 and abc.log.2_20141209 and move to another bkp directory.
Thanks in... (2 Replies)
Discussion started by: bhaskar t
2 Replies
LEARN ABOUT DEBIAN
makeself
makeself(1) General Commands Manual makeself(1)
NAME
makeself - An utility to generate self-extractable archives.
SYNTAX
makeself [options] archive_dir file_name label [startup_script] [args]
DESCRIPTION
This program is a free (GPL) utility designed to create self-extractable archives from a directory.
OPTIONS
The following options are supported.
-v, --version Prints out the makeself version number and exits.
-h, --help Print out help information.
--gzip Compress using gzip (default if detected).
--bzip2 Compress using bzip2.
--compress Compress using the UNIX 'compress' command.
--nocomp Do not compress the data.
--notemp The archive will create archive_dir in the current directory and uncompress in ./archive_dir.
--copy Upon extraction, the archive will first copy itself to a temporary directory.
--append Append more files to an existing makeself archive. The label and startup scripts will then be ignored.
--current Files will be extracted to the current directory. Implies --notemp.
--header file Specify location of the header script.
--follow Follow the symlinks in the archive.
--nox11 Disable automatic spawn of an xterm if running in X11.
--nowait Do not wait for user input after executing embedded program from an xterm.
--nomd5 Do not create a MD5 checksum for the archive.
--nocrc Do not create a CRC32 checksum for the archive.
--lsm file LSM file describing the package.
AUTHORS
Makeself has been written by Stephane Peter <megastep@megastep.org>. This man page was originally written by Bartosz Fenski <fenio@o2.pl>
for the Debian GNU/Linux distribution (but it may be used by others).
2.1.4 makeself(1)