10-01-2007
creating conditional logs
Hi all,
I am new to scripting and hope to get help in this forum...we use autosys ... the jil files call shell scripts (korn shell) for automated processes and create logs everytime they are run...the process runs every 5 mins which is creating huge logs...i need to know if logs be created conditionally..only when something is processed...if nothing is processed, then the log should be deleted....any help is appreciated......
Thanks in advance....
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hello, i am a newbie who is just starting to use liunx, and I need to accept a string from the terminal and use case to echo a suitable message if the string doesn't have at least 10 characters. Also, how would I do the same thing using expr? (3 Replies)
Discussion started by: soccerstr1
3 Replies
2. UNIX for Dummies Questions & Answers
conditional is not wworking
can any one figure out what goes wrong
xx1=`$ORACLE_HOME/bin/sqlplus -s apps/ostgapps1 2>/dev/null << EOF
WHENEVER SQLERROR EXIT 1
set head off feedback off ;
WHENEVER SQLERROR EXIT SQL.SQLCODE;
select count(*) from CMS_INVOICE_ALL... (2 Replies)
Discussion started by: u263066
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I am new to unix and shell scripting.In my script,there is a line using the "if" conditional -
if && ; then
do something
Here "x" is a variable holding string value.If it is not equal to a comma or a string,only then I want to enter the "if" loop. But I am getting error while... (1 Reply)
Discussion started by: abhinavsinha
1 Replies
4. Shell Programming and Scripting
Hi,
I am new to unix and shell scripting.In my script,there is a line using the "if" conditional -
if && ; then
do something
Here "x" is a variable holding string value.If it is not equal to a comma or a string,only then I want to enter the "if" loop. But I am getting error while... (12 Replies)
Discussion started by: abhinavsinha
12 Replies
5. Shell Programming and Scripting
Hi,
I am trying to write a script which would go search and get the info from the logs based on yesterday timestamp and write yesterday logs in new file. The log file format is as follows:
""""""""""""""""""""""""""... (3 Replies)
Discussion started by: harish.parker
3 Replies
6. Shell Programming and Scripting
Hi,
Can someone help me with creating a bash shell script.
I need to create a script that gets a positive number n as an argument.
The script must create n directories in the current directory with names like map_1, map_2 etcetera. Each directory must be contained within its predecessor. So... (7 Replies)
Discussion started by: I-1
7 Replies
7. Shell Programming and Scripting
Hell Unix.com Community:
I am working on a personal project using yad v0.12.4 (zenity fork) and have hit a wall on how to show a progress bar while my function is processing.
I have been all over the ABS Guide, googled 21 Linux-specific sites that I revere. I even asked on the yad-common... (4 Replies)
Discussion started by: Habitual
4 Replies
8. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Here is what I am supposed to do, word for word from my assignment page:
1. Create/modify and print a... (2 Replies)
Discussion started by: Jagst3r21
2 Replies
9. Ubuntu
Hi All,
Is there any way to create a symlink that will point to last 1000 line of a log file. My symlink will always point to "tail -1000 logfile".
This can be achieved by writing a script and scheduling with high frequency, but I am looking for some other alternatives.
Please let me know... (8 Replies)
Discussion started by: sussus2326
8 Replies
10. Shell Programming and Scripting
Appreciate help for the below issue.
Im using below code.....I dont want to attach the logs when I ran the perl twice...I just want to take backup with today date and generate new logs...What I need to do for the below scirpt..............
1)if logs exist it should move the logs with extention... (1 Reply)
Discussion started by: Sanjeev G
1 Replies
LEARN ABOUT DEBIAN
rpm2paco
RPM2PACO(8) System RPM2PACO(8)
NAME
rpm2paco - create paco logs from a local RPM database
SYNOPSIS
rpm2paco [OPTIONS] <packages>
DESCRIPTION
rpm2paco is a shell script that create paco(8) logs from rpm(8) ones. The newly created logs are placed into the paco log directory auto-
matically.
Is not mandatory to add the version suffix to the input packages, since rpm adds it automatically.
OPTIONS
-a, --all
Read the whole rpm database of the system, and create a paco log for each logged package. Warning: for more than a few packages,
this may take a long time.
-q, --quiet
Be quiet, except for errors.
-f, --force
Force overwrite of any already logged package. By default they are skipped.
-j, --sync-version
Remove obsolete versions of the packages from the paco database. For instance, if foo-1.0 is beeing imported, and foo-2.4 is logged
by paco but not by rpm, remove foo-2.4 from the paco database.
-s, --strip-release
Remove the release suffix from the name of the package (e.g. 'foo-1.0.2-2.1' --> 'foo-1.0.2').
-h, --help
Print a usage message and exit.
-v, --version
Print version information and exit.
WEB SITE
http://paco.sourceforge.net
COPYRIGHT
Copyright (C) 2004-2009 David Rosal <davidrr@sourceforge.net>
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
SEE ALSO
paco(8), pacorc(5), superpaco(8), pacoball(8)
paco-2.0.9 28 June 2010 RPM2PACO(8)