Sponsored Content
Full Discussion: Question about times and so
Top Forums Shell Programming and Scripting Question about times and so Post 31096 by TheBlueLady on Friday 1st of November 2002 02:59:01 AM
Old 11-01-2002
Error Question about times and so

I've got an logfile like:

Start dump db_name1 : Wed Oct 30 15:08:47 MET 2002
Ready dump db_name1 : Wed Oct 30 15:14:46 MET 2002

Start dump db_name2 : Wed Oct 30 15:14:46 MET 2002
Ready dump db_name2 : Wed Oct 30 15:15:36 MET 2002

Start dump db_name3 : Wed Oct 30 15:15:36 MET 2002
Ready dump db_name3 : Wed Oct 30 15:17:00 MET 2002

What I want to do is make a file which looks as follows:
db_name1 db_name2 db_name3
Oct 30 5:99 0:50 1:24 <- duration of dump

So that everytime I dump the databases a line is added in the file.
How can I do this ? With AWK ? or something else.
Especially how can I subtract the times ?
I hope that somebody can help me. Smilie
 

8 More Discussions You Might Find Interesting

1. AIX

how would you know your server was rebooted 3 times or 5 times

Is there such location or command to know how many times did you reboot your server in that particular day?in AIX. (3 Replies)
Discussion started by: kenshinhimura
3 Replies

2. Shell Programming and Scripting

Executes many times

The code prints many times, "1st loop" and "2nd loop". How can I come out the if the condition is matched. Match should be only once and it should come out of the loop if the match is found time=$(date +"%H:%M:%S") echo $time while : do if then echo "1st loop" fi if then... (5 Replies)
Discussion started by: sandy1028
5 Replies

3. HP-UX

grep for x for m times ',\{11\}'

All: OS version HP-UX ga016a501 B.11.31 U ia64 from the command prompt -grep for 1 to 11 occurences of "," returns both rows from the command prompt -grep for 11 occurences of "," returns 0 rows - should be 1 row. Any ideas - why? ga016a501 -> grep ',\{1,11\}' test3 | more ... (7 Replies)
Discussion started by: Bill L.
7 Replies

4. UNIX and Linux Applications

ssh times out

I have fedora 13 installed on my home computer. I am unable to ssh from my office to my home computer. On trying to ssh to my home computer, I get the following response: $ ssh -vvv username@129.X.XXX.XXX OpenSSH_5.3p1, OpenSSL 1.0.0a-fips 1 Jun 2010 debug1: Reading configuration data... (6 Replies)
Discussion started by: arbitguy
6 Replies

5. Programming

Problem with implementing the times() function in C (struct tms times return zero/negative values)

Hello, i'm trying to implement the times() function and i'm programming in C. I'm using the "struct tms" structure which consists of the fields: The tms_utime structure member is the CPU time charged for the execution of user instructions of the calling process. The tms_stime structure... (1 Reply)
Discussion started by: g_p
1 Replies

6. Shell Programming and Scripting

To get difference between 2 times.

Can anyone help me to write a script to get diffrence between 2 times. (platform- solaris) i.e., Diffence shoud be displayed in tems of hours. (Approximately) for eg: file1 = 05-Apr-2012 13:42:32 file2 = 04-Apr-2012 12:42:41 O/P is like : diff = 25 Hrs (2 Replies)
Discussion started by: thomasraj87
2 Replies

7. What is on Your Mind?

Welcome in these 1337 times

Have you noticed that the Unix time right now starts with the combination "1337"? 1337 times indeed. ;-)) bakunin (10 Replies)
Discussion started by: bakunin
10 Replies

8. Red Hat

Response Times

Hello all. Let me qualify my question by saying that I am struggling with how to ask the question I am semi green but have no issue reading up if pointed in the right direction. Please be gentle! A RHEL server 6.2. Hosts a statistical application that has some web apps and batch programming... (0 Replies)
Discussion started by: rsheikh01
0 Replies
QUOTARESTORE(8) 					    BSD System Manager's Manual 					   QUOTARESTORE(8)

NAME
quotarestore -- restore dumped quota information to a file system volume SYNOPSIS
quotarestore [-d] file-system [dump-file] DESCRIPTION
The quotarestore program restores dumped quota information to a file system. The file dump-file should be in the format produced with quotadump(8). The quotas, expiration times, and configured grace times listed in the dump file are loaded into the named file system. The file-system argument should be a file or directory on the (mounted) file system, not a device special file. If the -d option is given, quota entries on the file system that are not mentioned in the dump file will be deleted. Otherwise, they are left alone. If the dump-file is not specified, standard input is used. SEE ALSO
quota(1), libquota(3), fstab(5), edquota(8), quotadump(8) HISTORY
The quotarestore command appeared in NetBSD 6.0. BSD
February 11, 2012 BSD
All times are GMT -4. The time now is 05:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy