Hi, I have a client who uploads files to my FTP server on a regular basis. Instead of checking the server all the time, I wrote a script that e-mail me to let me know that there is a new file and attaches is it in the e-mail (they're all small compressed archives). The potential issue with the... (4 Replies)
Hi Guys,
Is there any way I can execute my bash script on files in a different folder than what the script is in? Here is an excerpt of my script:
#!/usr/bin/bash
input_path="/cygdrive/c/files"
output_path="/cygdrive/c/files/data"
#script uses files from /cygdrive/c/files directory,... (1 Reply)
Hi all,
I am beginner in UNIX...I want to use unix shell script to create text.file...I know how to use using by command...can anybody tell me for the script?
Thanks
i changed the threads title from "tex file" to "text file", because "tex" would probably be misunderstood as reference to... (4 Replies)
How to code shell script to know if the file in a dirctory is empty i.e., zero byte then not to execute any graph.Please help on this thanks in advance.
---------- Post updated at 08:18 AM ---------- Previous update was at 08:14 AM ----------
I know if clause wil help.my question is how to... (7 Replies)
I am using VSFTPD on amazon web services and have a remote service that uploads files to server via FTP. The files comes through fine and when I log in via FTP client I see them. The problem is the files are supposed to be moved once uploaded but the files are not visible via command line thus the... (2 Replies)
Guy's ,
I need to run korn shell script from different directory, usually I run the script using ./details.ksh in the same directory but now I need to run the file and process details using awk code.
Now I am running the script this way but with no luck
Directory = home/users/work ... (3 Replies)
Hi Gurus,
I have the below requirement,
Execute an unix script which will pick the latest file from the archive directory and do a grep (on multiple patterns) on that file.
processingDir="/usr/apps/irdc/informatica/spsf_sales/TgtFiles/ARCHIVE"
filename = 'ls Check* | sort -n -k 2 |... (6 Replies)
I need a script which should watch a directory for a file with specific directory.
If it finds a file in directory, it should search for few specific keyword in the file. if the keyword exists, it should trim string from specific column.
The file should be moved to another directory and the a... (8 Replies)
Hi Expert,
I'm having grub problem here:
grub> root
(hd0,0): Filesystem type is ext2
grub> setup
Error 11 : Unrecognized Device String
I try install boot loader follow the instruction from 26.2. Booting into Rescue Mode
It says : select Continue, it attempts to mount your file... (4 Replies)
I have a script, which is checking if file exists and move it to another directory
if
then
mkdir -p ${LOCL_FILES_DIR}/cool_${Today}/monthly
mv report_manual_alloc_rpt_A_I_ASSIGNMENT.${Today}*.csv ${LOCL_FILES_DIR}/cool_${Today}/monthly
... (9 Replies)
Discussion started by: digioleg54
9 Replies
LEARN ABOUT DEBIAN
epylog
epylog(8) Applications/System epylog(8)NAME
epylog - Syslog new log notifier and parser.
SYNOPSIS
epylog [-c epylog.conf] [-d LOGLEVEL] [--last PERIOD]
[--store-offsets] [--quiet] [--cron]
DESCRIPTION
Epylog is a new log notifier and parser which runs periodically out of cron, looks at your logs, processes the entries in order to present
them in a more comprehensive format, and then provides you with the output. It is written specifically with large network clusters in mind
where a lot of machines (around 50 and upwards) log to the same loghost using syslog or syslog-ng.
Alternatively, Epylog can be invoked from the command line and provide a log report based on a certain provided time period. In this case
it relies on syslog timestamps to find the offsets, as opposed to the end-of-log offsets stored during the last run, though this behavior
is not as reliable and is easily thwarted by skewed clocks.
OPTIONS -c config.file
Provide an alternative config file to Epylog. By default, it will look in /etc/epylog/epylog.conf.
-d LOGLEVEL
Logging level. The default is 1. 0 will produce no output except for critical errors (useful for cron runs). 2 and above are debug-
ging levels. 5 is the most verbose.
--last PERIOD
Will make a report on events that occurred in the last PERIOD. PERIOD can be either "hour", "day", "week", "month", or more granu-
lar: "1h", "2h", "3d", "2w", etc. When --last is specified, epylog will ignore the saved offsets and locate the entries by time-
stamps. CAUTION: this process is not to be trusted, since the timestamps are not checked for any validity when arriving to the
loghost. One reporting machine with a skewed clock may confuse Epylog enough to miss a lot of valid entries.
--store-offsets
When specified, will store the offset of the last log entry processed in offsets.xml. During the cron runs epylog relies on the off-
set information to find out what new entries to process. This is more trustworthy than relying on timestamps. The default behavior
is not to store the offsets, as this allows to run epylog both from cron and manually without the two interfering with each-other.
The location of offset.xml is specified in epylog.conf. See epylog.conf(5) for more details.
--quiet
In every way identical to -d 0.
--cron This is essentially --quiet --store-offsets, plus a lockfile will be created and consulted, preventing more than one instance of
epylog from running. You can still run epylog manually -- the lockfile is only checked when running in --cron mode.
FEATURES
The core of epylog is written in python. It handles things like timestamp lookups, unwrapping of "last message repeated" lines, han-
dling of rotated files, preparing and publishing the reports, etc.
The modules are pluggable and can be either "internal", written in python, or external. External modules can be written in any lan-
guage, but at a price of some convenience. For more info see epylog-modules(5).
INITIAL RUN
Depending on the size of your logs, you might want to initialize your offsets before letting epylog run from cron. When the off-
sets.xml file is missing, epylog will by default process the entire log, and depending on your configuration, that can be a lot of
entries. A good way to init epylog is to run:
epylog --last day --store-offsets
FILES
/etc/epylog/epylog.conf
/usr/sbin/epylog
/etc/cron.daily/epylog.cron
/etc/epylog/*
/var/lib/epylog/*
/usr/share/epylog/modules/*
EXAMPLES
The useful way to run from a command line is with --last. E.g.:
epylog --last day
epylog --last 2w
When running from cron, you want to store the offsets and not rely on timestamps. There is a mode that allows you to do this:
epylog --cron
AUTHORS
Konstantin Ryabitsev <icon@linux.duke.edu>
SEE ALSO epylog.conf(5)epylog-modules(5)Konstantin Ryabitsev 1.0 epylog(8)