09-18-2013
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
HI ;
I got Solaris8 installed oon Sunfire V440 .I have TZ=GMT in /etc/TIMEZONE , but when i log in as root i see the date in GMT+1.
So i have every time to "set TZ=GMT ; export $TZ" .
How can i set the TZ=GMT at the startup defenitely.
Thanks
:) (7 Replies)
Discussion started by: oss
7 Replies
2. Shell Programming and Scripting
hi all,
how do i format the date command so it displays day and month in single digits i.e 8 instead of 08 ??
am using the command (in a ksh) : date +%D
output i get is 10/08/08
thanks in advance. (5 Replies)
Discussion started by: cesarNZ
5 Replies
3. Shell Programming and Scripting
I have a var storing date
var=`date`
Now the date is returned as
Mon Feb 2 00:25:48 PST 2009
Is there any way to check the date field alone ("2" in above case) and if its a single digit then add a prefix 0 to it and store the result in same variable "var"
My intention in above case is... (3 Replies)
Discussion started by: villain41
3 Replies
4. UNIX for Dummies Questions & Answers
Hi all.
I changed the date to go ahead one hour for DST this past weekend and date command shows:
/home/oracle>date
Wed Mar 17 12:40:12 EST 2010
/home/oracle>echo $TZ
Canada/Eastern
I think it should be reading EDT and not EST as My Dataprotector is reporting backups at... (5 Replies)
Discussion started by: jamie_collins
5 Replies
5. UNIX Desktop Questions & Answers
I have files with many different formats and breaks in odd places. now I want to normalize them to be able to count the sentence in each file
1: I want to count the sentences is they finish with ! . ?
2: but I don't want it to count if there is no space after the Full stop. e.g. S.O.L
I have... (6 Replies)
Discussion started by: A-V
6 Replies
6. Shell Programming and Scripting
DST started on Oct 20th in Brazil.
If I run the below command in that time zone,
date +%s -d "10/20/2013" it throws an error message "Invalid date" . But it works fine for other dates including 19th and 21st Oct.
Any idea ? Is there any unix patch ? (2 Replies)
Discussion started by: Lakshmikumari
2 Replies
7. Shell Programming and Scripting
HTML Code
archive_history() { HISTORYOLD=${HISTFILE}.archive CURTIME=`date` CURTTY=`tty` IP=$(echo $SSH_CLIENT | awk '{print $1}') if ; then echo "#-${HOSTNAME}-- ${CURBASHDATE} - ${CURTIME} ($CURTTY) ${USER} ${IP}----" >> $HISTORYOLD history... (2 Replies)
Discussion started by: rehantayyab82
2 Replies
8. Shell Programming and Scripting
HTML Code:
archive_history() { HISTORYOLD=${HISTFILE}.archive CURTIME=`date` CURTTY=`tty` IP=$(echo $SSH_CLIENT | awk '{print $1}') if ; then echo "#-${HOSTNAME}-- ${CURBASHDATE} - ${CURTIME} ($CURTTY) ${USER} ${IP}----" >> $HISTORYOLD history... (0 Replies)
Discussion started by: rehantayyab82
0 Replies
9. UNIX for Beginners Questions & Answers
Hi all i am very new to shell scripting and need some help from you to learn
1)i have some log files that gets generated on daily basis example: i have abc_2017_01_30_1.log ,2017_01_30_2.log like wise so i want to zip this 4 logs which are created on same date into one zip folder.
2)Post zipping... (2 Replies)
Discussion started by: b.saipriyanka
2 Replies
10. Shell Programming and Scripting
Hi all i am very new to shell scripting and need some help from you to learn
1)i have some log files that gets generated on daily basis example: i have abc_2017_01_30_1.log ,2017_01_30_2.log like wise so i want to zip this 4 logs which are created on same date into one zip folder.
2)Post zipping... (1 Reply)
Discussion started by: b.saipriyanka
1 Replies
LEARN ABOUT DEBIAN
xml::atom::client
XML::Atom::Client(3pm) User Contributed Perl Documentation XML::Atom::Client(3pm)
NAME
XML::Atom::Client - A client for the Atom API
SYNOPSIS
use XML::Atom::Client;
use XML::Atom::Entry;
my $api = XML::Atom::Client->new;
$api->username('Melody');
$api->password('Nelson');
my $entry = XML::Atom::Entry->new;
$entry->title('New Post');
$entry->content('Content of my post.');
my $EditURI = $api->createEntry($PostURI, $entry);
my $feed = $api->getFeed($FeedURI);
my @entries = $feed->entries;
my $entry = $api->getEntry($EditURI);
DESCRIPTION
XML::Atom::Client implements a client for the Atom API described at http://bitworking.org/projects/atom/draft-gregorio-09.html, with the
authentication scheme described at http://www.intertwingly.net/wiki/pie/DifferentlyAbledClients.
NOTE: the API, and particularly the authentication scheme, are still in flux.
USAGE
XML::Atom::Client->new(%param)
$api->use_soap([ 0 | 1 ])
XML::Atom::Client supports both the REST and SOAP-wrapper versions of the Atom API. By default, the REST version of the API will be used,
but you can turn on the SOAP wrapper--for example, if you need to connect to a server that supports only the SOAP wrapper--by calling
use_soap with a value of 1:
$api->use_soap(1);
If called without arguments, returns the current value of the flag.
$api->username([ $username ])
If called with an argument, sets the username for login to $username.
Returns the current username that will be used when logging in to the Atom server.
$api->password([ $password ])
If called with an argument, sets the password for login to $password.
Returns the current password that will be used when logging in to the Atom server.
$api->createEntry($PostURI, $entry)
Creates a new entry.
$entry must be an XML::Atom::Entry object.
$api->getEntry($EditURI)
Retrieves the entry with the given URL $EditURI.
Returns an XML::Atom::Entry object.
$api->updateEntry($EditURI, $entry)
Updates the entry at URL $EditURI with the entry $entry, which must be an XML::Atom::Entry object.
Returns true on success, false otherwise.
$api->deleteEntry($EditURI)
Deletes the entry at URL $EditURI.
$api->getFeed($FeedURI)
Retrieves the feed at $FeedURI.
Returns an XML::Atom::Feed object representing the feed returned from the server.
ERROR HANDLING
Methods return "undef" on error, and the error message can be retrieved using the errstr method.
AUTHOR & COPYRIGHT
Please see the XML::Atom manpage for author, copyright, and license information.
perl v5.12.4 2011-09-27 XML::Atom::Client(3pm)