10 More Discussions You Might Find Interesting
1. 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
2. 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
3. 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
4. UNIX for Advanced & Expert Users
Hi All
I want to change the date timestamp for the log file but to do it within crontab
I've tried the following..
40 11 * * * /data/dart/dc65.1/bin/adstats.sh > /data/dart/dc65.1/bin/adstats_`date'+%d:%m-%H.%M.%S'`.log 2>&1
But I only get adstats_
Any ideas?
Thanking you all... (4 Replies)
Discussion started by: Zak
4 Replies
5. Shell Programming and Scripting
2009/03/30 08:11:34.553 DFP
2009/03/30 08:11:36.861 PLO
I want it to be
2009/03/30 09:11:34.553 DFP
2009/03/30 09:11:36.861 PLO
and
2009/03/30 23:11:34.553 DFP
2009/03/30 23:11:36.861 PLO
to be
2009/03/30 00:11:34.553 DFP
2009/03/30 00:11:36.861 PLO
Can we use sed or... (4 Replies)
Discussion started by: lalelle
4 Replies
6. UNIX for Advanced & Expert Users
Hi,
Please could someone advise on the following if possible. I have built a unix server, and was given the wrong hostname. I need to amend the hostname to the correct name. And I don't want to rebuild the server again.
I've tried the following to do change :
hostname DTCT-TD3FIXI01A... (3 Replies)
Discussion started by: venhart
3 Replies
7. Shell Programming and Scripting
Hi all, below is my current scriptftp -n << FTPCTRL
open $my_ip
user $my_user $my_pass
ascii
prompt off
lcd $myDIR
cd $ftp_cd
$OPS $myfile
FTPCTRLI'd like to amend it to sftp mode. Please advise the correct step.I consulted the man pages of sftp and I suppose I should be using the... (1 Reply)
Discussion started by: new2ss
1 Replies
8. Solaris
Hi guys,
I'm fidling around Partition space on SMC
and on changing partition size, or assiging an unused partition to "usr", or even trying to alter the disk layout I get:
Attempted Format of Partition /dev/dsk/c1t0d0s3 failed with unexpected CIM error:
CIM_ERR_FAILED:CIM_ERR_FAILED:... (2 Replies)
Discussion started by: drchris
2 Replies
9. Shell Programming and Scripting
Hi,
I'm trying to write a command that backs up certain files into my current directory and adds a prefix to the backed up file name. I realise this can be done in a script by specifying each individual file but would like to know if it can be done on one line and made an alias.
I have the... (5 Replies)
Discussion started by: m223464
5 Replies
10. Solaris
How can I change teh timestamp of a file (1 Reply)
Discussion started by: krishan
1 Replies
PAM_TIMESTAMP(8) Linux-PAM Manual PAM_TIMESTAMP(8)
NAME
pam_timestamp - Authenticate using cached successful authentication attempts
SYNOPSIS
pam_timestamp.so [timestamp_timeout=number] [verbose] [debug]
DESCRIPTION
In a nutshell, pam_timestamp caches successful authentication attempts, and allows you to use a recent successful attempt as the basis for
authentication. This is similar mechanism which is used in sudo.
When an application opens a session using pam_timestamp, a timestamp file is created in the timestampdir directory for the user. When an
application attempts to authenticate the user, a pam_timestamp will treat a sufficiently recent timestamp file as grounds for succeeding.
OPTIONS
timestamp_timeout=number
How long should pam_timestamp treat timestamp as valid after their last modification date (in seconds). Default is 300 seconds.
verbose
Attempt to inform the user when access is granted.
debug
Turns on debugging messages sent to syslog(3).
MODULE TYPES PROVIDED
The auth and session module types are provided.
RETURN VALUES
PAM_AUTH_ERR
The module was not able to retrieve the user name or no valid timestamp file was found.
PAM_SUCCESS
Everything was successful.
PAM_SESSION_ERR
Timestamp file could not be created or updated.
NOTES
Users can get confused when they are not always asked for passwords when running a given program. Some users reflexively begin typing
information before noticing that it is not being asked for.
EXAMPLES
auth sufficient pam_timestamp.so verbose
auth required pam_unix.so
session required pam_unix.so
session optional pam_timestamp.so
FILES
/var/run/sudo/...
timestamp files and directories
SEE ALSO
pam_timestamp_check(8), pam.conf(5), pam.d(5), pam(8)
AUTHOR
pam_timestamp was written by Nalin Dahyabhai.
Linux-PAM Manual 09/19/2013 PAM_TIMESTAMP(8)