04-28-2013
FWIW - most "logging" processes that follow UNIX standards will close the current output file and then open another on receipt of a SIGHUP signal. Check your documentation.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello Everyone,
Here is what I am trying to do. I have four text files, I want to gzip them under unix and mail the zipped file via outlook. I am able to do this easily enough, but using winzip or pkunzip to unzip the file, there is only one file. (In essence, all four files were... (2 Replies)
Discussion started by: smbodnar
2 Replies
2. UNIX for Dummies Questions & Answers
The windows version of gzip supports pretty much unlimited file sizes while the one we have in solaris only goes up to a set size, one or two gigs I think.
Is there a new version of gzip I can put on our systems that supports massive file sizes? (2 Replies)
Discussion started by: LordJezo
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
There are multiple files in a directory with different names.How can they be gzipped such that the timestamp of the files is not changed. (2 Replies)
Discussion started by: er_ashu
2 Replies
4. Shell Programming and Scripting
Hello experts,
I run Solaris 9. I have a below script which is used for gunzip the thousand files from a directory.
----
#!/usr/bin/sh
cd /home/thousands/gzipfiles/
for i in `ls -1`
do
gunzip -c $i > /path/to/file/$i
done
----
In my SAME directory there thousand of GZIP file and also... (4 Replies)
Discussion started by: thepurple
4 Replies
5. Shell Programming and Scripting
Hello. I have a scripting query that I am stumped on which I hope you can help with.
Basically, I have a ksh script that calls a process to create n number of binary files. These files have a maximum size of 1Gb. The process can write n number of files at once (parallel operation) based on the... (4 Replies)
Discussion started by: eisenhorn
4 Replies
6. Shell Programming and Scripting
Is there any way to compress only the files with .xml extension within a folder which in turn has many sub folders?
gzip -r9 path/name/*.xml is not working
This compression is done in the Windows server using Batch script. (2 Replies)
Discussion started by: Codesearcher
2 Replies
7. Shell Programming and Scripting
Hi,
I have 1000 of files in a folder with the file extension as .csv
In this some of the files are already zipped and its looks like filename.csv.gz
Now i need to zip all the files in the folder to free some disk space. When i give gzip *.csv
It prompts me to overwrite filename.csv.gz... (5 Replies)
Discussion started by: nokiak810
5 Replies
8. UNIX for Advanced & Expert Users
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)
Discussion started by: hanfresco
1 Replies
9. Shell Programming and Scripting
Hi
Please can you help me in writing a script to find files on a specific directory, and of extension "tap" but only of the month of september, gzip and move them to another directory.
Your help will be appreciated. (4 Replies)
Discussion started by: fretagi
4 Replies
10. Shell Programming and Scripting
Hi Guys,
I am using RHEL5 and Solaris 9 & 10.
I want to tar and gzip my files then remove them after a successful tar command...
Lets say I have files with extension .arc then I want to tar and gzip these files.
After successful tar command I want to remove all these files (i.e .arc).
... (3 Replies)
Discussion started by: Phuti
3 Replies
killall(8) System Manager's Manual killall(8)
NAME
killall - Terminates all processes started by the user, except the calling process
SYNOPSIS
/usr/sbin/killall [- | [-]signal_name | -signal_number]
/usr/sbin/killall -l
FLAGS
The hyphen character (without an argument) sends a SIGTERM signal initially and then sends a SIGKILL signal to all processes that survive
for 30 seconds after receipt of the first signal. This gives processes that catch the SIGTERM signal an opportunity to clean up. A signal
name, optionally preceded by a hyphen, sends the specified signal to processes. The hyphen character (with a signal number argument) sends
the specified signal, either a name, stripped of the SIG prefix (such as KILL), or a number (such as 9). For information about signal
names and numbers, see the signal() system call.
In the System V habitat, the optional signal number does not have to be preceded with a hyphen (-). Lists signal names in numerical order
(as given in the /usr/include/signal.h file), stripped of the common SIG prefix.
DESCRIPTION
This command provides a convenient means of killing all processes created by the shell that you control. When started by the superuser,
the killall command kills all processes that can be terminated, except those processes that started it, the kernel processes, and processes
0 and 1 (init).
Security Configuration
This command is modified in all security configurations of the system.
EXAMPLES
To stop all background processes that have started, enter: killall This sends all background processes signal 9 (the kill signal, also
called SIGKILL). To stop all background processes, giving them a chance to clean up, enter: killall - This sends signal 15 (SIGTERM),
waits 30 seconds, and then sends signal 9 (SIGKILL). To send a specific signal to the background processes, enter: killall -2 This sends
signal 2 (SIGINT) to the background processes. To list the signal names in numerical order, stripped of the SIG prefix, enter: killall -l
This displays a list of signals, which may vary from system to system.
FILES
Specifies the command path
RELATED INFORMATION
Calls: kill(2), sigaction(2), signal(2) delim off
killall(8)