09-28-2008
comparing timestamp of a file with its touched version
Hi,
I'm new to unix,I wanna know how can I compare timestamp of a file with its touched version.i.e I want to be sure if the touch command has worked properly i.e if the file has been touched then a msg should be printed saying success else failure.All this to be incurred in a script.
Any suggestions are welcome.
Thanks in advance
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi!
I need to copy a whole bunch of file from a build directory to my working directory. Many of these files already exist in my working directory. I need to copy only those files that have been modified since I last copied..
How do I compare the timestamp of two files, so that I would copy... (2 Replies)
Discussion started by: jyotipg
2 Replies
2. UNIX for Dummies Questions & Answers
Hi There!
Apologies if this has been asked previously but I couldn't find the answer I was hoping for.
Basically, all I want to do is compare the OS X version against the version that I require in my script. So I'm retrieving the OS version using defaults read, but how can I compare this... (10 Replies)
Discussion started by: davewg
10 Replies
3. What is on Your Mind?
This, my venerable audience, is my 1000th post here.
Thanks for your support and help..:b:
---Vidyadhar:) (4 Replies)
Discussion started by: vidyadhar85
4 Replies
4. UNIX for Dummies Questions & Answers
I will be taking a UNIX course as a part of my college Data Com concentration curriculum. Just thought it would be a good idea to get a little head start, since this class will most likely be quite difficult for someone like me. I never did any programming and I never dealt with Unix or Linux short... (3 Replies)
Discussion started by: ibex333
3 Replies
5. Shell Programming and Scripting
Hi,
I've a file in the following format
1999-APR-8 17:31:06 1500 3 45
1999-APR-8 17:31:15 1500 3 45
1999-APR-8 17:31:25 1500 3 45
1999-APR-8 17:31:30 1500 3 45
1999-APR-8 17:31:55 1500 3 45
1999-APR-8 17:32:06 1500 3 ... (1 Reply)
Discussion started by: vaibhavkorde
1 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
I am new to unix programming. I am trying for a requirement and the requirement goes like this.....
I have a test folder. Which tracks log files. After certain time, the log file is getting overwritten by another file (randomly as the time interval is not periodic). I need to preserve... (2 Replies)
Discussion started by: mailsara
2 Replies
7. Shell Programming and Scripting
How to copy a file from directroy/ prior version to the directory/ new version automatically. (4 Replies)
Discussion started by: roy1912
4 Replies
8. Shell Programming and Scripting
Hi Friends,
I have the following logfile. Currently time in india is 07/31/2014 12:33:34 and i have the following content in logfile. I want to display only those entries which contain string 'Exception' within last 3 hours. In this case, it would be the last line only
I can get the... (12 Replies)
Discussion started by: srkmish
12 Replies
9. UNIX for Advanced & Expert Users
i have a directory where all .csv files are available. i have 3 perl programs(ex: a.pl,b.pl,c.pl) which continuously runs every 1 minute to scan all files in that directory. now i have 2 questions
1) how can i write an app lock on that particular folder to make sure only one program will scan... (4 Replies)
Discussion started by: sbjv
4 Replies
10. HP-UX
I have a file like this
-rwxr-xr-x 1 rewq other 168 Jan 13 07:05 check_files.sh
I want to compare (check_files.sh time) with the current time to see if its is older than 2 hours or not
if it is not older than 2 hrs then do something.can someone help me on this?.I dont... (7 Replies)
Discussion started by: haadiya
7 Replies
LEARN ABOUT DEBIAN
amcheckdump
AMCHECKDUMP(8) System Administration Commands AMCHECKDUMP(8)
NAME
amcheckdump - check the results of an Amanda dump
SYNOPSIS
amcheckdump [--timestamp|-t timestamp] [--verbose] [-o configoption...] config
DESCRIPTION
Amcheckdump verifies Amanda dump images by reading them from storage volume(s) and verifying that the images can be parsed by the
appropriate application (if available). For example, a GNUTAR image is passed to GNU Tar for parsing, and any errors (e.g., corrupt or
missing data) are noted.
The application runs on the most recent dump or, if --timestamp is specified, on the most recent dump with that timestamp. Note that the
verification is local to the Amanda server; if the dump application is not available, or is configured differently on the server than on
the client, then the verification will most likely fail.
If a changer is available, it is used to load the required tapes. Otherwise, the application interactively requests the tapes.
See the "CONFIGURATION OVERRIDE" section in amanda(8) for information on the -o option.
EXAMPLE
# check the most recent dump
amcheckdump MYCONFIG
# check a specific dump from back in '78
amcheckdump MYCONFIG --timestamp 19780615
SEE ALSO
amanda(8), amcheck(8)
The Amanda Wiki: : http://wiki.zmanda.com/
AUTHOR
Ian Turner <ian@zmanda.com>
Zmanda, Inc. (http://www.zmanda.com)
Amanda 3.3.1 02/21/2012 AMCHECKDUMP(8)