07-18-2013
Quote:
Originally Posted by
SeenuGuddu
Hi Gurus,
Is there any solution for tracking the script(.sh) files triggered on daily or monthly basis from source - Datastage (Routines)
Needs to find out if this scripts are running on daily
just want to know that is there anything to track
Thanks in Advance
What do you mean by
Datastage (Routines)?
Let me see if I get this straight. You want to keep a log of all the scripts that are run every day? --> If a script is run automatically on a periodic basis, it is most likely scheduled to do so using cron. If you're root, you can access the list of the files that are executed, how (which arguments, and so on) and when.
If I misunderstood you, feel free to write back and clarify. Please share other details such as OS, what shell you're using, etc.
8 More Discussions You Might Find Interesting
1. HP-UX
HI all,
I've been having issues with printers and plotters disabling with no reason at all...It could happen to the same workstation once a day or once a week..There is nothing consistant..I stop and restart the spooler, only then can I re-enable the disabled printer....
If anyone is... (0 Replies)
Discussion started by: Shutdown
0 Replies
2. Shell Programming and Scripting
I need to zip all the files within a directory on a daily basis and store them as a zip file within that directory with the date in its naming convention
I have file extentions .log .lst and .out's within that directory
How do i do this task
zip -mqj mydir/allzip$YYMMDDDD.zip mydir/*.*
... (5 Replies)
Discussion started by: ramky79
5 Replies
3. Shell Programming and Scripting
Hi,
I have a lot of logfiles like fooYYYYMM.log (foo200301.log, foo200810.log) with lines like
YYYY-MM-DD TIMESTAMP,text1,text2,text3...
but I need (for postprocessing) the form fooYYYYMMDD.log (so foo200402.log becomes foo20040201.log, foo20040202.log...)
with unmodified content of lines.
... (1 Reply)
Discussion started by: clzupp
1 Replies
4. UNIX for Advanced & Expert Users
Dear All,
Can someone tell me how do I setup autosys job where it needs to execute on monthly basis that too on 1st day of the month.
Thanks. (3 Replies)
Discussion started by: shahnazurs
3 Replies
5. Shell Programming and Scripting
Need help on this script.
the month is not changing to February...
#!/bin/bash
for X in `seq 1 100`
do
DATE=`date +%Y-%m-%d "--date=${X} day ago"`
Y=`date +%Y`
M=`date +%m`
D=`date +%d "--date=${X} day ago"`
DIR=/home/LogBackup
for i in `seq 1 `
do
if ;then
# ... (1 Reply)
Discussion started by: alelee
1 Replies
6. Shell Programming and Scripting
Hi!
Please I need help on the a script that would pick one file in a directory, change its name, them change its permissions, them move to a different directory, but has to be done on a daily basis, and the file that is being moved to its final destination has to have the following format:... (7 Replies)
Discussion started by: fretagi
7 Replies
7. Shell Programming and Scripting
OS : RedHat Linux 6.2
Shell : Bash
Our application write messages, warnings,..etc to the following log file .
/app/cms/diagnostics/logs/cms_messages.log
This file has become huge now. I want this file to be archived on monthly basis using a small shell script.
ie. On the 1st day of... (1 Reply)
Discussion started by: omega3
1 Replies
8. Shell Programming and Scripting
Hi all
I need to count files on a daily basis and send the output via email, what I am currently doing its simply running the following:ls -lrt *.cdr | awk '{if(($6 == "Jul") && ($7 == "13")) print $0}' | wc -l, which in this case it will count all files with extension "cdr" from the month of... (13 Replies)
Discussion started by: fretagi
13 Replies
LEARN ABOUT DEBIAN
lr_vendor_cron
LR_VENDOR_CRON.IN(1) LogReport's Lire Documentation LR_VENDOR_CRON.IN(1)
NAME
lr_vendor_cron - generate Lire reports from all known log files on the system
SYNOPSIS
lr_vendor_cron daily|weekly|monthly
DESCRIPTION
lr_vendor_cron is designed to be invoked by cron. On systems supporting /etc/cron.d/, this script can be invoked by creating
/etc/cron.d/lire, which should read e.g.:
02 5 * * * root /usr/sbin/lr_vendor_cron daily
22 5 * * 0 root /usr/sbin/lr_vendor_cron weekly
42 5 1 * * root /usr/sbin/lr_vendor_cron monthly
lr_vendor_cron reads files /etc/sysconfig/lire.d/*.cfg and /etc/default/lire.d/*.cfg. For each log file, such a file should exist. The
files should set the following shell variables:
daemon
the name of a binary which generated the specific log. This is used to test wether the *.cfg-file is suitable for the current system.
If you'd like to generate a log for which no daemon is present on the current system, just use a placeholder like "daemon=/bin/true".
service
a Lire service, e.g. sendmail,
logfile
e.g. /var/log/mail.log.1.gz,
filter
e.g. 'gzip -dc' or 'zcat | grep sendmail', and
rotateperiod
one of the supported lr_vendor_cron arguments.
extraopts
optional: extra options passed to lr_log2mail(1). Set this to e.g. '--template www_local'.
After parsing the configuration files, lr_vendor_cron invokes lr_log2mail(1) on the `filter'ed log file. Reading and filtering the log is
done as root, lr_log2mail is run as user lire, using su(1). Output is fed to logger(1).
SECURITY
lr_vendor_cron is supposed to be run as root. However, please note that this script is distributed WITHOUT ANY WARRANTY. If you don't
like to run such a script as root, make sure your lire user has read access to all log files you'd like to get processed, and adapt this
script. We supply this script mainly for people building packages. On many Unix and GNU/Linux distributions, it's hard to enforce log
file readability by the lire user. This script is mainly a way to work around this.
ENVIRONMENT VARIABLES
lr_vendor_cron honours DEBUG, CONFDIR, PRIORITY (for logger(1) call), and LIREUSER. Beware! PRIORITY as used here is independent of the
LR_FACILITY as set in /etc/lire/defaults. This script does not use any of the settings in /etc/lire/defaults.
VERSION
$Id: lr_vendor_cron.in,v 1.14 2006/07/23 13:16:33 vanbaal Exp $
COPYRIGHT
Copyright (C) 2002, 2003 Stichting LogReport Foundation LogReport@LogReport.org Copyright (C) 2005 Joost van Baal
This program is part of Lire.
Lire is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with
http://www.gnu.org/copyleft/gpl.html.
AUTHORS
Francis J. Lacoste <flacoste@logreport.org>, Joost van Baal <joostvb@logreport.org>
Lire 2.1.1 2006-07-23 LR_VENDOR_CRON.IN(1)