Extract info from log file and compute using time date stamp
Looking for a shell script or a simple perl script . I am new to scripting and not very good at it .
I have 2 directories . One of them holds a text file with list of files in it and the second one is a daily log which shows the file completion time. I need to co-relate both and make a report.
Code:
Directory 1 : /home/drew/files
Contents from Jul.txt
Directory 2 :/home/drew/logs
Contents of server.log.2009-07-28
So I want to go to the Directory 1 and open each record and run it against the server.log based on date and compute the time taken for file to load.Each day will have a server.log as mentioned and each file list will have several files a day
Last edited by zaxxon; 12-30-2009 at 04:57 AM..
Reason: use code tags please, thank you
I have to capture the creation date and time stamp for a file. The ls command doesn't list all the required information. I need year, month, day, hour, minute and second.
Any ideas... (1 Reply)
I am trying to insert a line with a date stamp in a file that is used to monitor activity in one of our directories. By doing this, I want to grep that file each day and go to the last entry for each time a error occurred and pull all errors generated if any exist. If error exists I want that error... (3 Replies)
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)
Hi
When i do ls -ltr <file1> then it shows me the date and time of the file
if - for whatever reason file has future date/time stamp then ls -ltr is not showing the time, it just shows only date part ... even if time is ahead by 2 hr than current time.
suppose a file was copied from INDIA... (3 Replies)
Hi
I use "touch -t xxxxxxxx" command to set date/time stamp of a file. My requirement is to read the date/time stamp of a file and apply it to another file.
Is there anyway to do it simple instead of manually taking date/stamp of first file?
TIA
Prvn (2 Replies)
Hi!
Please see our current script:
#!/usr/bin/ksh
if (egrep "This string is found in the log" /a01/bpm.log)
then
mailx -s "Error from log" me@email.com, him@email.com </a01/bpm.log
fi
To the above existing script, we need to add the following change:
1) After finding the string,... (7 Replies)
hi,
i have a Archive directory in which files are archived or stored with date and time stamp to prevent over writing.
example:
there are 5 files
s1.txt
s2.txt
s3.txt
s4.txt
s5.txt
while moving these files to archive directory, date and time stamp is added.
of format `date... (9 Replies)
Hi Friends,
I have the following logfile.
i want to make a script for calculate time by time2 - time1
1600266278|random|1|2014-09-19 02:08:56.024|2014-09-19 02:08:59.398|A|B|ROOM|Num0208559970111101788|1|dog|dos
1600266200|random|4|2014-09-19 02:08:06.572|2014-09-19... (2 Replies)
I am developing one script which will take log file name, output file name, date, hour and minute as an argument and based on these inputs, the script will scan and capture all the error(s) that have been triggered from a given time. Example: script should capture all the error after 13:50 on Jan... (2 Replies)
I have a file hello.txt which was created today (today's date timestamp)
I wish to change its date timestamp (access, modified, created) to 1 week old i.e one week from now.
uname -a
SunOS mymac 5.11 11.2 sun4v sparc sun4v
Can you please suggest a easy way to do that ? (12 Replies)
Discussion started by: mohtashims
12 Replies
LEARN ABOUT DEBIAN
carddavd
CARDDAVD(8) BSD System Manager's Manual CARDDAVD(8)NAME
carddavd -- Darwin Address Book Server Control Interface
SYNOPSIS
carddavd [-hX] [-u username] [-g groupname] [-T twistd] [-f carddavd.plist]
DESCRIPTION
carddavd is a front end to the Darwin Address Book Server. The Darwin Address Book Server is a web server which implements the HTTP, WebDAV,
WebDAV ACL, and CardDAV protocols.
carddavd is a simple tool for starting the server.
OPTIONS -h Displays usage information
-X Starts the server but does not daemonize it.
-u username
Drops privileges to the given username.
-g groupname
Drops privileges to the given groupname.
-f carddavd.plist
Specifies the path of the configuration file to read.
-T twistd
Specifies the path to the twistd binary.
FILES
/etc/carddavd/carddavd.plist
The Address Book Server configuration file. It is an XML property list specifying server options such as the port to bind to, whether
to use SSL, and the names of other configuration files.
/etc/carddavd/server.pem
PEM-format server keys for use with SSL.
/Library/AddressBookServer/Documents
The server's document root, which is used as the backing store for the HTTP resources on the server.
/var/log/carddavd/access.log
The server's access log file, in a format similar to Apache HTTPd's access log.
/var/log/carddavd/error.log
The server's main log file.
/var/run/carddavd.pid
The server's process ID file.
/usr/share/carddavd
Server implementation and support files.
SEE ALSO caldavd(8), httpd(8), serveradmin(8)STANDARDS
carddavd complies with draft-ietf-vcarddav-carddav (CardDAV), RFC 2518 (WebDAV) and RFC 3744 (WebDAV ACL).
HISTORY
carddavd was first introduced as part of Darwin 10 and Mac OS 10.6.
BUGS
This version of carddavd is still in development and testing.
BSD April 20, 2009 BSD