10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How to create a shell script to create a folder by using the today's date to take backup using rsync command on every evening around 7 pm.
Kindly help.
Thanks.
To be more precise,
I want to create a script which matches the today's date with server's date format, if matches then creates the... (2 Replies)
Discussion started by: bakula10
2 Replies
2. Programming
Hello All,
I have python script that pulls out a keyword from the data set. The data set contains 3 columns,
1. SysID 2. ID 3. Comment Section.
This script just pulls out keyword for certain extent from Comment section and display only keyword, not any other columns.
Can someone help... (1 Reply)
Discussion started by: jg355187
1 Replies
3. Shell Programming and Scripting
My script triggers and e-mail if keywords supplied to it were found.
Problem is if it find the same keyword continously (due to continous server errors), it triggers mails and fillup my mail box with same message (which is not required)
I want my script to NOT to send an e-mail if it finds the... (13 Replies)
Discussion started by: Rajeshneemkar
13 Replies
4. Shell Programming and Scripting
Hi
I want to implement something like this:
if( keyword1 exists)
then
check if(keyword2 exists in the same line)
then replace keyword 2 with New_Keyword
else
Add New_Keyword at the end of line
end if
eg:
Check for Keyword JUNGLE and add/replace... (7 Replies)
Discussion started by: dashing201
7 Replies
5. Shell Programming and Scripting
Hi Linux Community
I would like to ask about how to compare files in deferent server with date.
Those A and B servers has the same folder, I have write a sample script to "ls" both folders and "diff" them, and then "rsync" the missing files.
It was running well, both A and B are sync, until... (2 Replies)
Discussion started by: lunaticdawn
2 Replies
6. Shell Programming and Scripting
Hello,
I need a shell script which takes search keyword as input and then searches logs in six different servers and provide me the logs where in it found the keyword.
Can anyone help???? (1 Reply)
Discussion started by: tomlui2010
1 Replies
7. UNIX for Dummies Questions & Answers
Hi Guys,
Good morning! I have a file which looks something like this:
Command was launched from partition 0.
------------------------------------------------
Executing command in server server3
Thu Jan 12 11:10:39 EET 2012
------------------------------------------------... (3 Replies)
Discussion started by: rymnd_12345
3 Replies
8. Shell Programming and Scripting
Hi
I have some set of files for a particular date. What is the command that I need to put in for finding the total size of all the files for that particular date. The following command is fetching me the size of all individual files seperately
du -h *20101010*
16M file1.20101010
120K... (10 Replies)
Discussion started by: bobby1015
10 Replies
9. Shell Programming and Scripting
File contian below data...
20111101
20111102
20111131
I am new to unix and per scirpt...
First two records are valid and last record is invalid,how to get the valid records...
Please help me unix or perl script.
:wall:
Thanks,
Murali (5 Replies)
Discussion started by: muralikri
5 Replies
10. UNIX for Dummies Questions & Answers
How would I go about getting the previous date on the server? I'm out of ideas...I am thinking that I could do it using the date command, but I am unable to find any information on doing it. For example if the current date is April 17th 2008 it would be (20080417) <- (YYYYMMDD). I need the previous... (4 Replies)
Discussion started by: developncode
4 Replies
NEWS.DAILY(8) System Manager's Manual NEWS.DAILY(8)
NAME
news.daily - do regular Usenet system administration
SYNOPSIS
news.daily [ keyword... ]
DESCRIPTION
News.daily performs a number of important Usenet administrative functions. This includes producing a status report, removing old news
articles, processing log files, rotating the archived log files, renumbering the active file, removing any old socket files found in the
``firewall'' directory, and collecting the output. This program should be run under the news administrator's id, not as root.
By default, news.daily performs all of its functions and mails the output to the news administrator, usenet. By specifying ``keywords'' on
the command line, it is possible to modify the functions performed, as well as change the arguments given to expire(8) and expireover(8).
News.daily should be run once a day, typically out of cron(8). It may be run more often, but such invocations should at least use the
``notdaily'' keyword to prevent the log files from being processed and rotated too fast.
The shlock(1) program is used to prevent simultaneous executions.
KEYWORDS
The following keywords may be used:
delayrm
This uses the ``-z'' flag when invoking expire and expireover. The names of articles to be removed are written to a temporary file,
and then removed after expiration by calling expirerm(8).
expctl=path
Specify the file to use as the expire.ctl(5) file for expire.
expdir=path
By default, expire builds the new history(5) file and database in the same directory as the current files. Using this keyword spec-
ifies a different local to build the new files (by passing the ''-d'' flag to expire), which will then be moved to the right loca-
tion when finished.
nostat This keyword disables the status report generated by innstat (see newslog(8)). Without this keyword, the status report is the first
function performed, just prior to obtaining the news.daily lock.
notdaily
By default news.daily expects to be run only once a day. Use this keyword any extra times news.daily is run in the day and the nor-
mal logfile processing (and rotation) will not be done.
noexpire
By default, expire is invoked to remove old news articles. Using this keyword disables this function.
noexplog
Expire normally appends information to /var/log/news/expire.log (see newslog(5)). Using this keyword causes the expire output to be
handled as part of news.daily's output. It has no effect if the ``noexpire'' keyword is used.
flags='expire args'
By default, expire is invoked with the an argument of ``-v1''. Using this keyword changes the arguments to those specified. Be
careful to use quotes if multiple arguments are needed. This keyword has no effect if the ``noexpire'' keyword is used.
nologs After expiration, scanlogs(8) is invoked to process the log files. Using this keyword disables all log processing functions.
norotate
By default, log processing includes rotating and cleaning out log files. Using this keyword disables the rotating and cleaning
aspect of the log processing: the logs files are only scanned for information and no contents are altered.
This keyword has no effect if the ``nologs'' keyword is used. The ``norotate'' keyword is passed on to scanlogs if it is invoked.
norenumber
This keyword disables the ctlinnd(8) renumber operation. Normally, the low-water mark for all newsgroups (see active(5)) is reset.
norm By default, any socket ctlinnd socket that has not been modified for two days will be removed. Using this keyword disables this
function.
nomail News.daily normally sends a mail message containing the results to the administrator. Using this keyword causes this message to be
sent to stdout and stderr instead. Normally, all utilities invoked by the script have their stdout and stderr redirected into a
file. If the file is empty, no message is sent.
expireover
The expireover program is called after expiration to purge the overview databases.
expireoverflags='expireover args'
If the ``expireover'' keyword is used, this keyword may be used to specify the flags to be passed to expireover. If the ``delayrm''
keyword is used, then the default value is ``-z'' and the list of deleted files; otherwise, the default value is ``-s''.
/full/path
The program specified by the given path is executed just before any expiration is done. A typical use is to specify an alternate
expiration program and use the ``noexpire'' keyword. Multiple programs may be specified; they will be invoked in order.
HISTORY
News.daily and this manual page written by Landon Curt Noll <chongo@toad.com> and Rich $alz <rsalz@uunet.uu.net>. This is revision 1.11,
dated 1996/12/10.
SEE ALSO
active(5), ctlinnd(8), expire(8), fastrm(8), newslog(5), newslog(8), innwatch.ctl(5), shlock(1).
NEWS.DAILY(8)