06-06-2009
what have you tried till now??
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
OS: Solaris
Shell : KSH
Please help me in writing a script that captures a error message from a log file ( which updates continiously ) and send an email alert as soon as the systems throws a error message into that log.
i.e With out monitoring the log
Thanks in advance.. (1 Reply)
Discussion started by: pray44u
1 Replies
2. UNIX for Dummies Questions & Answers
Just spent the last hour cruising the FAQ and doing some searches. I learn best by getting one or two books and just starting from scratch and building up a system. Looks like that's the way most of you recommend getting going anyway. I'm armed with several book titles now, and I'll head off to... (2 Replies)
Discussion started by: Rowan
2 Replies
3. UNIX for Dummies Questions & Answers
Hi Folks,
I posted a few days ago, thanks for the responses. My original question was for renaming files of sort 3p2325294.dgn in a directory containing multiple files. I need to drop the first 2 characters and the last in a unix script using Perl. How does it differ from using the Unix... (1 Reply)
Discussion started by: Dinkster
1 Replies
4. Shell Programming and Scripting
I am working on writing scripts. Here is a script I need help with. I have also wrote what I think it is. I would really appreciate any help that I can get.
Create an executable script file called "newname" that will perform the followings:
1. Rename a file upon the user's request. If the... (2 Replies)
Discussion started by: wiggles
2 Replies
5. Shell Programming and Scripting
Create an executable script file called "newname" that will perform the followings:
1. Rename a file upon the user's request. If the file exists, prompt the user for confirmation before renaming the file. The screen should prompt the user for
a. "Name of file you want to rename." Use the "\c"... (7 Replies)
Discussion started by: wiggles
7 Replies
6. Shell Programming and Scripting
Hi,
This may be answered elsewhere but I wasn't entirely sure of the wording I should use to search so here we go with an attempt:
I wish to make a script that will allow commands to be passed to it such as:
<command> -oOPTIONS -aANOTHER -pRINT
etc
However I don't really know the... (3 Replies)
Discussion started by: stuaz
3 Replies
7. Shell Programming and Scripting
Hi All,
I am writing a unix shell script. I have a file called Results.txt which stores 4 fields separated by pipe. i.e. a pipe delimited file. I want to loop through each record of this file and store each of these 4 fields into variables. I have read can be done through awk but I have never... (7 Replies)
Discussion started by: shwetainnani
7 Replies
8. UNIX for Dummies Questions & Answers
Hi, Very new to linux but I've just recently setup an ubuntu server.
I have 2 broadband connections and would like to have fallback on the server should one of the lines fail.
I know what I want it to do, but dont know how to script it.
heres the senario;
ubuntu server with 2 ethernet... (0 Replies)
Discussion started by: ziggycat
0 Replies
9. UNIX and Linux Applications
:o no longer need this. (0 Replies)
Discussion started by: tokposman
0 Replies
10. What is on Your Mind?
Any Unix Admins out there who were tasked with upgrading and maintaining java/jboss installs and possibly related apps?
How did it work out?
Any tools to allow developers to tweak their java settings, like a console? I just started looking into this, if anyone has experience I'd appreciate... (0 Replies)
Discussion started by: allenhibbert
0 Replies
LEARN ABOUT DEBIAN
datetime::format::epoch::unix
DateTime::Format::Epoch::Unix(3pm) User Contributed Perl Documentation DateTime::Format::Epoch::Unix(3pm)
NAME
DateTime::Format::Epoch::Unix - Convert DateTimes to/from Unix epoch seconds
SYNOPSIS
use DateTime::Format::Epoch::Unix;
my $dt = DateTime::Format::Epoch::Unix->parse_datetime( 1051488000 );
# 2003-04-28T00:00:00
DateTime::Format::Epoch::Unix->format_datetime($dt);
# 1051488000
my $formatter = DateTime::Format::Epoch::Unix->new();
my $dt2 = $formatter->parse_datetime( 1051488000 );
$formatter->format_datetime($dt2);
DESCRIPTION
This module can convert a DateTime object (or any object that can be converted to a DateTime object) to the number of seconds since the
Unix epoch.
METHODS
Most of the methods are the same as those in DateTime::Format::Epoch. The only difference is the constructor.
o new()
Constructor of the formatter/parser object. It has no parameters.
SUPPORT
Support for this module is provided via the datetime@perl.org email list. See http://lists.perl.org/ for more details.
AUTHOR
Eugene van der Pijll <pijll@gmx.net>
COPYRIGHT
Copyright (c) 2003 Eugene van der Pijll. All rights reserved. This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
SEE ALSO
DateTime
datetime@perl.org mailing list
perl v5.10.1 2007-12-03 DateTime::Format::Epoch::Unix(3pm)