If so you can setup a mrnet file in /etc/logrotate.d as show below and it will compress rename and rotate your logfile for you when it exceeds 5k in size (see man logrotate for more info).
Hi, I am trying to unzip a file that I unmounted onto a unix machine from a cd I had burned in a Windows machine. The file I am trying to unzip is a .tar file... it was originally a .tar.gz file because it was zipped using gzip. I have tried:
% gzip -d hpux.tar (where hpux.tar is the file... (2 Replies)
Gurus,
My own stupidity (or ignorance...or both) put me in the situation I am in and I need help please:
1-My shell account (OS: HP UX v11) contains several work directories (/docs, /scripts...)
2-Our sysadmin has implemented aggressive disk quotas so I have to compress the files I put here... (2 Replies)
ciao a tutti,
premesso che sono un principiante di unix, avrei bisogno di gzip/gunzip e SOPRATTUTTO delle istruzioni (ahimè dettagliatissime, come per un bimbo!) per installarlo...
grazie mille,
ciao (1 Reply)
Hi All,
I have some files which are 01.tar.gz, 02.tar.gz,03.tar.gz ........30.tar.gz.
when I want to extract the files I 'm using this command "gzip -dc *.tar.gz | tar -xvf -" but it just uncompress 01.tar.gz
how can I uncompress all of them ?
thanx
alice (2 Replies)
Hi all,
I have a file(Say x) and need to zip using gzip with the date&Timestamp(Something like x01012007.......) . Can you please tell me the command.
Thanks (2 Replies)
Hi Experts!!
I was creating a zip file in a server which had zip installed in it. I have another server in which zip is not there and i am instructed to make use of gzip to compress files. I would need your help to know the way to create a gzip file.
1) I do the following to create the zip... (5 Replies)
Hi,
I want to gzip files in loop.
for i in `ls *.xml`;
do
gzip $i;
done
But i am gettin error like "/usr/bin/ls: Arg list too long"
Also please tell me how to do it with while loop and also using find and then exec. (7 Replies)
Hi All,
I have a random test file: test.txt, size: 146
$ ll test.txt
$ 146 test.txt
Take 1:
$ cat test.txt | gzip > test.txt.gz
$ ll test.txt.gz
$ 124 test.txt.gz
Take 2:
$ gzip test.txt
$ ll test.txt.gz
$ 133 test.txt.gz
As you can see, gzipping a file and piping into gzip... (1 Reply)
Hi Gurus,
I have a requirement to zip a file using gzip and ftp it to target server.
I am using a gzip script as below.
gzip.sh
#!/bin/ksh
/usr/bin/gzip -9 $1
Filename for gzip.sh is passed by an application program.
so the output for ./gzip.sh Test_YYYYMMDDHHMMSS.txt (file name is... (1 Reply)
how to zip all log file in a folder expect the latest
gzip * ---> will zip all log files but I don't want the latest file to be zipped
ex: file1, file2, file3, file4, file5
any single command to gzip all files excpet file5 ? (2 Replies)
Discussion started by: rmann
2 Replies
LEARN ABOUT OPENSOLARIS
scds_syslog_debug
scds_syslog_debug(3HA) Sun Cluster HA and Data Services scds_syslog_debug(3HA)NAME
scds_syslog_debug - write a debugging message to the system log
SYNOPSIS
cc [flags...] -I /usr/cluster/include file -L /usr/cluster/lib -l dsdev
#include <rgm/libdsdev.h>
void scds_syslog_debug(int debug_level, constchar *format...
DESCRIPTION
The scds_syslog_debug() function writes a debugging message to the system log. It uses the facility returned by the scha_cluster_getlogfa-
cility(3HA) function.
All syslog messages are prefixed with: SC[<resourceTypeName>,<resourceGroupName>,<resourceName>,<methodName>
If you specify a debug_level greater than the current debugging level being used, no information is written.
The DSDL defines the maximum debugging level, SCDS_MAX_DEBUG_LEVEL, as 9. The scds_initialize(3HA) function, which the calling program must
call before scds_syslog_debug(), retrieves the current debugging level from the file: /var/cluster/rgm/rt/<resourceTypeName>/loglevel.
Caution -
Messages written to the system log are not internationalized. Do not use gettext() or other message translation functions in conjunction
with this function.
PARAMETERS
The following parameters are supported:
debug_level Debugging level at which this message is to be written. Valid debugging levels are between 1 and SCDS_MAX_DEBUG_LEVEL,
which is defined as 9 by the DSDL. If the specified debugging level is greater than the debugging level set by the
calling program, the message is not written to the system log.
format Message format string, as specified by printf(3C)
... Variables, indicated by the format parameter, as specified by printf(3C)EXAMPLES
Example 1 Display All Debugging Messages
To see all debugging messages for resource type SUNW.iws, issue the following command on all nodes of your cluster
echo 9 > /var/cluster/rgm/rt/SUNW.iws/loglevel
Example 2 Suppress Debugging Messages
To suppress debugging messages for resource type SUNW.iws, issue the following command on all nodes of your cluster
echo 0 > /var/cluster/rgm/rt/SUNW.iws/loglevel
FILES
/usr/cluster/include/rgm/libdsdev.h
Include file
/usr/cluster/lib/libdsdev.so
Library
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscdev |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO printf(3C), scds_syslog(3HA), scha_cluster_getlogfacility(3HA), syslog(3C), syslog.conf(4), attributes(5)Sun Cluster 3.2 7 Sep 2007 scds_syslog_debug(3HA)