02-16-2010
My first reaction is to use unix "compress" command but it's better if an AIX expert comments.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Friends,
i am trying to write a shell script which will check for the logfile size.
if the content of the logfile is wc -l >=1 then send mail with log file as attachment.else do nothing.
i'm trying the below code can any one help on this
if ]
then
(echo "`cat... (2 Replies)
Discussion started by: rajendragora
2 Replies
2. Shell Programming and Scripting
Hello friends!
Here is the scenario.
I have a flat file named FILE1.TXT with multiple columns and comma as delimiter.
Now my task is to create another file called FILE2.TXT which contains the FIRST & THIRD column values from FILE1.TXT separated by comma.
Which mean i am creating a new... (5 Replies)
Discussion started by: sai_kris_007
5 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I want to connect to a remote machine using FTP, check for the size of a file there. If it is 0 bytes, then there is no need to ftp else i have to ftp the file. Any help will be highly appreciated. (7 Replies)
Discussion started by: vikas.rao11
7 Replies
4. Shell Programming and Scripting
All Expert,
I am using Sun OS 5.8 and Perl version 5 in One server and Perl 5.8 in another unix server.
I am able to read a file using fopen function of perl --file size having more then 3 GB of data.(In the machine where Perl 5.8 install)
But when i am running the same perl script --It... (1 Reply)
Discussion started by: jambesh
1 Replies
5. Shell Programming and Scripting
I need to copy a file example hhh.txt to the recently created directory by name flexite@latesttimestamp in the path interface/home/ ...
I couldnt get the name of recently created directory ....
first result of ls -lst ...that is ls -lst |head -2 gives the latest directory but i could not... (2 Replies)
Discussion started by: helloo
2 Replies
6. Shell Programming and Scripting
Hi All,
I have some files in a directory. If the file size is 0 i want to move the file to new directory using unix script. Can anyone help me in this regard
Thanks
Vinny (4 Replies)
Discussion started by: vinny81
4 Replies
7. Shell Programming and Scripting
hello,
I am creating a script that is going to scan the contents of a directory, and if it finds a certain DocumentName that is a certain size (The example, DocumentName and a size of 8777)
If this file exists, it needs to be moved to a directory for later removal/processing..anyone have... (7 Replies)
Discussion started by: jeffs42885
7 Replies
8. Shell Programming and Scripting
Hi Friends,
Below is my requirement. I have a file with the below structure.
0001A1....
0001B1..
....
0001L1
0002A1
0002B1
......
0002L1
..
the first 4 characters are the sequence numbers for a record, A record will start with A1 and end with L1 with same sequence number. Now the... (2 Replies)
Discussion started by: diva_thilak
2 Replies
9. Shell Programming and Scripting
I have a file that is about 7 GB in size. The requirement is I should split the file equally in such a way that the size of the split files is less than 2Gb. If the file is less than 2gb, than nothing needs to be done. ( need to done using shell script)
Thanks, (4 Replies)
Discussion started by: rudoraj
4 Replies
10. Shell Programming and Scripting
// Redhat
I have this code working, but need to add one more qualification so that I don't overwrite the files.
#!/bin/sh
cd /P2/log/cerner_prod/millennium/archive/
for f in *
do || continue #If this isn't a regular file, skip it.
&& continue #If a backup already... (2 Replies)
Discussion started by: Daniel Gate
2 Replies
LEARN ABOUT DEBIAN
uucpsend.ctl
UUCPSEND.CTL(5) Administration UUCPSEND.CTL(5)
NAME
uucpsend.ctl - list of sites to feed via uucpsend
DESCRIPTION
The file /etc/news/uucpsend.ctl specifies the default list of sites to be fed by uucpsend(8). The program is able to read site information
from other related configuration files as well.
Comments begin with a hash mark (``#'') and continue through the end of the line. Blank lines and comments are ignored. All other lines
should consist of six fields separated by a colon. Each line looks like
site:max_size:queue_size:header:compressor:args
The first field site is the name of the site as specified in the newsfeeds(5) file. This is also the name of the UUCP system connected to
this site.
The second field max_size describes the maximum size of all batches in kbytes that may be sent to this site. If this amount of batches is
reached, this site will not be batched with this run and a reason will be logged into the logfile. This test includs all UUCP jobs, not
only the ones sent to rnews (performing ``du -s'').
The third field queue_size specifies the maximum size in kbytes of one batch. This argument is passed directly to batcher(8).
The fourth field header defines the text that shall appear in the command header of every batch file. `#! ' is prefixed each batch. Nor-
mally you'll need cunbatch for compress, gunbatch or zunbatch for gzip. This header is important since there is not standard way to handle
gzip'ed batches. Using this and the next argument you're also able to use any compressor you like. So you receive a certain amount of
flexibility by using uucpsend. If you don't want to have any compression leave the field empty.
The fifth field compressor names a program that reads from stdin and writes to stdout. Normally it modifies the input stream by compress-
ing it, such as compress(1) or gzip(1).
The sixth field args consists of additional arguments that are passed directly to uux when sending the batch.
One entry in the main configuration file is mandatory. There must exist a line containing the default values for all these variables. To
achieve this the pseudo site /default/ is used.
One default entry could look like this:
/default/:2000:200:cunbatch:compress:-r -n
This reflects a minimal setup. The maximal size that may be used by the UUCP spool directory is 2MB. Each batch will be max. 200 kBytes
big. The header of each batch will contain the string `cunbatch' and compress(1) is used to compress the batches. `-r -n' is passed to
uux(1) which means no notification will be sent if uux was successful and uux won't start the uucico(8) program when spooling the file.
HISTORY
Written by Martin Schulze <joey@infodrom.org> for InterNetNews. Most of the work is derived from nncpsend.ctl(5) by Landon Curt Noll
<chongo@toad.com> for InterNetNews.
SEE ALSO
batcher(8), newsfeeds(5), uucpsend(8), uux(1).
Infodrom 21 November 2001 UUCPSEND.CTL(5)