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 SUSE
passwd.nntp
PASSWD.NNTP(5) InterNetNews Documentation PASSWD.NNTP(5)
NAME
passwd.nntp - Passwords for connecting to remote NNTP servers
DESCRIPTION
The file pathetc/passwd.nntp contains host / name / password triplets for use when authenticating client programs to NNTP servers. This
file is normally interpreted by NNTPsendpassword() in libinn(3). Blank lines and lines beginning with a number sign ("#") are ignored.
All other lines should consist of three or four fields separated by colons:
host:name:password
host:name:password:style
The first field is the name of a host, and is matched in a case-insensitive manner. (No detailed matching, such as comparing IP addresses,
is done.)
The second field is a user name, and the third is a password. If either the username or password is empty, then that portion of the
authentication will not occur. (For example, a server may require only a username, in which case the password is not necessary. Note that
a username is mandatory with AUTHINFO USER/PASS.)
The optional fourth field specifies the type of authentication to use. At present, the only recognized "authentication style" is
"authinfo"; this is also the default. It means that AUTHINFO USER/PASS commands are used to authenticate to the remote host. (These NNTP
commands are described in RFC 4643.)
For example:
## UUNET needs a password, MIT doesn't.
mit.edu:bbn::authinfo
uunet.uu.net:bbn:yoyoma:authinfo
This file should not be world-readable.
HISTORY
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews.
$Id: passwd.nntp.pod 8822 2009-11-20 17:34:15Z iulius $
SEE ALSO
inn.conf(5), innd(8), libinn(3).
INN 2.5.2 2010-02-08 PASSWD.NNTP(5)