12-28-2009
Works great! Tx!
p.s. would you please remove the username/password from the quoted lines. I accidentally posted them as well
.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I need to get the date and time for past 1 hour from the current date. Anyone know how to do so?
Thanks (5 Replies)
Discussion started by: spch2o
5 Replies
2. AIX
I want to read a log file from a particular location.In the logfile , lines contains timestamp.I need to compare the timestamp in the logfile with the current date.If the timpestamp in the log file is less than 4 hours then i need to read the file from that location.Below is the file format.Please... (1 Reply)
Discussion started by: achu
1 Replies
3. AIX
I want to read a log file from a particular location.In the log file each line starts with timestamp.I need to compare the timestamp in the logfile with the current date.If the timpestamp in the log file is less than 4 hours then i need to read the file from that location.Below is the file... (1 Reply)
Discussion started by: achu
1 Replies
4. UNIX for Advanced & Expert Users
Normally we can use %s to find out the time in second since 1970.
But in my ksh, this format option is not available.
Example- date +%s
1268103151
above script command won't work in ksh. Can you guys provide its equivalent ? (3 Replies)
Discussion started by: boy18nj
3 Replies
5. Shell Programming and Scripting
I'm trying to compare 2 dates between current time and the timestamp on a file.
The date format is mmdd
Both return Apr 1 but when using if statement
line 11: Apr 1: command not found error is returned
#!/bin/sh
log="DateLog"
Current_Date=`date +%b%e`
Filepmdate=`ls -l /file.txt |... (1 Reply)
Discussion started by: cillmor
1 Replies
6. Shell Programming and Scripting
Hello - I have written the following basic shell script to count files, compare files and look for a particular strings in a file.
Problem 1: How do I define more than 1 file location?
#!/bin/bash
#this is a test script
FILES=$(ls /home/student/bin/dir1, home/student/bin/dir2)... (0 Replies)
Discussion started by: DallasT
0 Replies
7. AIX
Hello to all.
I work at AIX system without perl installed and I am restricted user, so I am limited to bash. In script that I am writing, I have to read line from file and transform date that I found inside to Unix timestamp. Line in file look something like this:
Tue Mar 29 06:59:00... (5 Replies)
Discussion started by: Hyperborejac
5 Replies
8. 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
9. Shell Programming and Scripting
Dear All
I need to find out day diff between two dates. date -d or date -- day is not working in mine system.
Currently i am using below code but it gives me wrong value while month change.
IP:
Date 1: 20150802 11:30:45
Date 2: 20150728 16:30:45
code used:
awk '{t1=$2; t2=$4;... (7 Replies)
Discussion started by: jaydeep_sadaria
7 Replies
10. Shell Programming and Scripting
So basically I have a log file and each line in this log file starts with a timestamp:
MON DD HH:MM:SS
SEP 15 07:30:01
I need to grep all the lines between last hour timestamp and current timestamp. Then these lines will be moved to a tmp file from which I will grep for particular strings. ... (1 Reply)
Discussion started by: nms
1 Replies
LEARN ABOUT DEBIAN
osd_clock
OSDClock(1) General Commands Manual OSDClock(1)
NAME
osd_clock - X on-screen clock displayer
SYNOPSIS
osd_clock [OPTION]... [+FORMAT]
DESCRIPTION
Display date/time information on screen.
-f FONT
Set font.
-c COLOR
Set color.
-d DELAY
Sets the delay (in seconds) that the clock is exposed. Useful if combined with INTERVAL.
-F FORMAT
This option specifies the format to be used to output the date. See 'strftime(3)'.
-i INTERVAL
This specifies the interval between displays. Default is 1 (display every second).
-H INTEGER
The "chimes per hour" count overrides -i. Default is 0 (no effect).
The time will be displayed this many times each hour (notwithstanding signals interrupting sleep, and leap seconds). The first dis-
play of the hour will be on the hour exactly. Use -H 4 for a display at 0, 15, 30 and 45 minutes past.
-s SHADOW
This option sets the shadow depth. Default 2.
-t locate clock at top left (default: bottom left).
-b locate clock at bottom left (default).
-o OFFSET
This option specifies the offset from the top or bottom of screen the text is displayed. The default is 0. Useful to move above or
below panels or applets.
-h, --help
display this help and exit
BUGS
The per-hour mode may fire up to one second late, or worse if the system is busy.
AUTHOR
Jon Beckham <leftorium@leftorium.net>
Martijn van de Streek <martijn@foodfight.org>
Nathan Walp <faceprint@faceprint.com>
COPYRIGHT
It is distributed under the GNU General Public License.
X OSD Clock March 2001 OSDClock(1)