05-16-2008
check timestamp on specific files
I have a health check script homed in /u/ainet/scripts
I need to check the time stamp on a file in /opt/config/log/
The file is called Backupdisk.out
I want write the same info that you get when you do a ls -l into a file
This is what I have been trying:
cd /opt/config/log/
ls -l | awk '$9 = "Backupdisk.out" {print $9," last successful "$6, $7," "$8" file size =", $5}' > /cust_use/home/ainet/scripts/allan.out
the desired out put in allan.out would be
Backupdisk.out last successful May 16 14:05 file size = 3365
10 More Discussions You Might Find Interesting
1. AIX
How can i compare the time stamps of two files to check if they are the same. Is there any option like the -nt or -ot with the if clause? I have a file and i "cp -p" the file to a different location. If a copy of the file already exists, i dont want to copy it. I am also running multiple instances... (1 Reply)
Discussion started by: pt14
1 Replies
2. Shell Programming and Scripting
Ok, i have a problem and not sure how to tackle this one as of yet.
I will have this job running in the cron every 5 minutes, i need it to check a directory for 5 files. These files are put into a directory from five different servers.
These 5 files will only have one part different in them,... (5 Replies)
Discussion started by: woosaah
5 Replies
3. 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
4. Shell Programming and Scripting
Hi,
In a field, I should receive the date with time stamp in a particular field. But sometimes the vendor sends just the date or the timestamp or correctl the date×tamp. I have to figure out the the data is a date or time stamp or date×tamp.
If it is date then append "<space>00:00:00"... (1 Reply)
Discussion started by: machomaddy
1 Replies
5. AIX
hello,
i have an AIX5.3 machine and i am writing a script to display some processes.
inside the script i want to get the time that the process starts and convert it to a unix timestamp.
is there a command that i can use to do that? i search the web but all i found is long scripts and it does... (4 Replies)
Discussion started by: omonoiatis9
4 Replies
6. Shell Programming and Scripting
I need to be able to identify files with file timestamps greater than a given timestamp.
I am using the following solution, although it appears to compare files at the "seconds" granularity and I need it at the milliseconds. When I tested my solution, it missed files that had timestamps... (3 Replies)
Discussion started by: nkm0brm
3 Replies
7. Shell Programming and Scripting
Need help
Please help on how to write a script which can echo timestamp, size of subdirectories in a specific path from multiple Linux servers to a text file.
I can ssh with a common user to all the servers from a build box.
Basic idea what I had was:
ssh <commonuser>@<each box>
cd... (1 Reply)
Discussion started by: sudhichadaga
1 Replies
8. Shell Programming and Scripting
I was looking at this script which outputs the two lines which differs less than one sec.
#!/usr/bin/perl -w
use strict;
use warnings;
use Time::Local;
use constant SEC_MILIC => 1000;
my $file='infile';
## Open for reading argument file.
open my $fh, "<", $file or die "Cannot... (1 Reply)
Discussion started by: cele_82
1 Replies
9. Shell Programming and Scripting
Hi all,
I have date and time value in a string,
I want to check if it is a valid date and time.
Need help on this.
Thanks (7 Replies)
Discussion started by: Pratiksha Mehra
7 Replies
10. 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
Irssi(1) General Commands Manual Irssi(1)
NAME
Irssi - a modular IRC client for UNIX
SYNOPSIS
irssi [-dv!?] [-c server] [-p port] [-n nickname] [-w password] [-h hostname]
DESCRIPTION
Irssi is a modular Internet Relay Chat client. It is highly extensible and very secure. Being a fullscreen, termcap based client with many
features, Irssi is easily extensible through scripts and modules.
OPTIONS
--config=FILE
use FILE instead of ~/.irssi/config.
--home=PATH
PATH specifies the home directory of Irssi. Default is ~/.irssi
-c, --connect=SERVER
connects to SERVER
-w, --password=PASSWORD
use PASSWORD for authentication.
-p, --port=PORT
automatically connect to PORT on server.
-!, --noconnect
disables autoconnecting.
-n, --nick=NICKNAME
specify NICKNAME as your nick.
-h, --hostname=HOSTNAME
use HOSTNAME for your irc session.
-d, --dummy
use dummy terminal mode.
-v, --version
display the version of Irssi.
-?, --help
show a help message.
SEE ALSO
Irssi has been supplied with a huge amount of documentation. Check /help or look at the files contained by /usr/share/doc/irssi*
FILES
/etc/irssi.conf
Global configuration file
~/.irssi/config
Personal configuration file
~/.irssi/config.autosave
Automatic save of the personal config file when it was changed externally
~/.irssi/default.theme
Default irssi theme
~/.irssi/away.log
Logged messages in away status
/usr/share/irssi/help/
Directory including many help files
/usr/share/irssi/scripts/
Global scripts directory
/usr/share/irssi/themes/
Global themes directory
~/.irssi/scripts/
Default scripts directory
~/.irssi/scripts/autorun/
Directory containing links to scripts that should be loaded automatically on startup
~/.irssi/startup
File containing a list of commands to execute on startup
AUTHORS
/CREDITS
Irssi was written by Timo Sirainen <cras@irssi.org>
This manpage was written by Istvan Sebestyen <stevee@alphanet.ch> and Stefan Tomanek <stefan@pico.ruhr.de>
Irssi IRC client September 2002 Irssi(1)