11-01-2010
I'm sorry. Perhaps I don't understand the question. so you have a log file for a given date, today. You want your output to be all files that have the extension (dat,errdat,ctl)? Can't you just use a simple yet crude method like grep?
Last edited by cue; 11-01-2010 at 06:07 AM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am new to Unix shell scripting. Can you please help me with this immediate requirement to code.. The requirement is as given below.
In a directory say Y, I have files like this.
PP_100000_28062006_122731_746.dat
PP_100000_28062006_122731_745.dat
PP_100000_28062006_122734_745.dat... (4 Replies)
Discussion started by: Chindhu
4 Replies
2. Shell Programming and Scripting
Hi,
I'm trying to accomplish the following and would like some suggestions or possible bash script examples that may work
I have a directory that has a list of log files that's periodically dumped from a script that is crontab that are rotated 4 generations. There will be a time stamp that is... (4 Replies)
Discussion started by: primp
4 Replies
3. Shell Programming and Scripting
in the below .. i want to pick the latest logfile which is having JPS.PR inside..
that means i want particularly "spgport040408041223.log:@@@@@@@@ 04:13:09 Adding: JPS.PR."
which is latest among these..
is it possible to compare the current time with logfile time ?
reptm@xblr0758rop>... (4 Replies)
Discussion started by: mail2sant
4 Replies
4. Shell Programming and Scripting
hi
i nned help in moving a file with the date before the file extension
for example
mv xxxxx.pdf xxxxx16042010.pdf
i tried
mv xxxxx.pdf xxxxx`date +'%m%d%y'`.pdf
did not work
any help appriciated (1 Reply)
Discussion started by: antointoronto
1 Replies
5. Shell Programming and Scripting
If a log file is in the following format
28-Jul-10 ::: Log message
28-Jul-10 ::: Log message
29-Jul-10 ::: Log message
30-Jul-10 ::: Log message
31-Jul-10 ::: Log message
31-Jul-10 ::: Log message
1-Aug-10 ::: Log message
1-Aug-10 ::: Log message
2-Aug-10 ::: Log message
2-Aug-10 :::... (3 Replies)
Discussion started by: vikram3.r
3 Replies
6. Shell Programming and Scripting
To delete log files content older than 30 days and append the lastest date log file date in the respective logs
I want to write a shell script that deletes all log files content older than 30 days and append the lastest log file date in the respective logs
This is my script
cd... (2 Replies)
Discussion started by: sreekumarhari
2 Replies
7. Shell Programming and Scripting
Hello,
i am having file details having elements mentioned below
Asia jan 18
Europe Jan 19
America Jan 20
I made script but it picks all the elements, i want to pick the elements according to the date to run the script i made cron job.
Please advise how it can work.... (12 Replies)
Discussion started by: rajjev_saini123
12 Replies
8. Shell Programming and Scripting
Hi All,
Below is my requirement.
I need to pick the certain content from log file and display. for example log file consist of following information
project1
project2
project3
filename1, size1, ower1, datecreated
filename2, size2, ower2, datecreated
filename3, size3, ower3,... (6 Replies)
Discussion started by: bbc17484
6 Replies
9. Shell Programming and Scripting
Hello please help me on this,
pick the last one hour lines from the log, which have the prefix time format like this.
log message
log message
i tried to do grep, but that failed.
my code
grep '(date +)' log_file_path
This checking only the current time stamp. How to get the log... (16 Replies)
Discussion started by: santosh2626
16 Replies
10. UNIX for Dummies Questions & Answers
i have files like
1)20131112_abc_01.csv and
2)20131113_abc_01.csv and
3)20131113_abc_02.csv
when i try to fetch the file in the next day. it shud pick the third file..
plz help me..
and i use `date +"%Y%m%d"` command to fetch..it fetches the current date... (2 Replies)
Discussion started by: applepie
2 Replies
LEARN ABOUT DEBIAN
condor_fetchlog
condor_fetchlog(1) General Commands Manual condor_fetchlog(1)
Name
condor_fetchlog Retrieve - a daemon's log file that is located on another computer
Synopsis
condor_fetchlog [-help -version]
condor_fetchlog[-pool centralmanagerhostname[:portnumber]] [-master -startd -schedd -collector -negotiator -kbdd] machine-namesubsys-
tem[.extension]
Description
condor_fetchlogcontacts Condor running on the machine specified by machine-name, and asks it to return a log file from that machine. Which
log file is determined from the subsystem[.extension]argument. The log file is printed to standard output. This command eliminates the need
to remotely log in to a machine in order to retrieve a daemon's log file.
For security purposes of authentication and authorization, this command requires an administrator's level of access. See section 3.6.1on
page for more details about Condor's security mechanisms.
The subsystem[.extension]argument is utilized to construct the log file's name. Without an optional .extension, the value of the configura-
tion variable named subsystem_LOG defines the log file's name. When specified, the .extensionis appended to this value.
Typical strings for the argument subsystemare as given as possible values of the predefined configuration variable $(SUBSYSTEM) . See the
definition in section 3.3.1. Note that access to any additional logs can be enabled by simply specifying the path to each log in the con-
figuration file with a configuration parameter named <NAME>_LOG , choosing an arbitrary unique name for each case.
A value for the optional .extensionargument is typically one of the three strings:
1. .old
2. .slot<X>
3. .slot<X>.old Within these strings, <X> is substituted with the slot number.
Options
-help
Display usage information
-version
Display version information
-pool centralmanagerhostname[:portnumber]
Specify a pool by giving the central manager's host name and an optional port number
-master
Send the command to the condor_masterdaemon (default)
-startd
Send the command to the condor_startddaemon
-schedd
Send the command to the condor_schedddaemon
-collector
Send the command to the condor_collectordaemon
-kbdd
Send the command to the condor_kbdddaemon
Examples
To get the condor_negotiatordaemon's log from a host named head.example.com from within the current pool:
condor_fetchlog head.example.com NEGOTIATOR
To get the condor_startddaemon's log from a host named execute.example.com from within the current pool:
condor_fetchlog execute.example.com STARTD
This command requested the condor_startddaemon's log from the condor_master. If the condor_masterhas crashed or is unresponsive, ask
another daemon running on that computer to return the log. For example, ask the condor_startddaemon to return the condor_master's log:
condor_fetchlog -startd execute.example.com MASTER
Exit Status
condor_fetchlog will exit with a status value of 0 (zero) upon success, and it will exit with the value 1 (one) upon failure.
Author
Condor Team, University of Wisconsin-Madison
Copyright
Copyright (C) 1990-2012 Condor Team, Computer Sciences Department, University of Wisconsin-Madison, Madison, WI. All Rights Reserved.
Licensed under the Apache License, Version 2.0.
See the Condor Version 7.8.2 Manualor http://www.condorproject.org/licensefor additional notices. condor-admin@cs.wisc.edu
September 2012 condor_fetchlog(1)