08-03-2010
Thanks zaxxon for the swift response.
With regards to your response, unfortunately we do not have the GNU date here. I will try to check also the link you provided.
Regards,
Elly
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
Im writing a script using the ksh shell. I have 2 variables in the script:
CURRTIME
PREVTIME
Example, if CURRTIME=13:00, I want to somehow calculate what the time was an hour ago so that PREVTIME=12:00
Right now I have the following:
CURRTIME=`date +%H:%M`
How can I... (4 Replies)
Discussion started by: xadamz23
4 Replies
2. Shell Programming and Scripting
i have the time 20100421043335 in format (date +%Y%m%d%H%M%S),and i want to be able to get the previous time 2 minutes ago,which is
20100421043135 (9 Replies)
Discussion started by: tomjones
9 Replies
3. Shell Programming and Scripting
need some help on the below requirement:
File1:
SV,22,20100501140000,JFK,RUH
SV,29,20100501073000,BOM,RUH
SV,29,20100501073000,SIN,RUH
third filed is datetime which is of the format (yyyymmddhh24miss)
File2
JFK,+,0500
BLR,-,0530
SIN,-,0800
for every line of file 1, take 4... (9 Replies)
Discussion started by: ssantoshss
9 Replies
4. Shell Programming and Scripting
OK, I am by no means a programmer...
I have been given the task to do some automation scripts. I have got most of it working from snippets I have found on the Web.
One requirement has me stumped.
The initial timing file created by the user is a comma delimited in the following format.... (4 Replies)
Discussion started by: autotuner
4 Replies
5. Shell Programming and Scripting
Hello all,
I have written sth like this:
#!/bin/bash
grep -e XXX -e YYYY myfile.log | grep -v ZZZ | awk '{print $1 " " $2 ";" $3 ";" $9 ";" $11}' > myfile.csv
sed -i '1iDate;Time;From;To' myfile.csv
=> it is clear that it converts log to csv and add a header.
Now I want to subtract row... (4 Replies)
Discussion started by: frhling
4 Replies
6. Shell Programming and Scripting
Hello All,
I am working on script where I need to add hours,minutes or seconds in the time.Time is not the current but it could be future time.I thought I can store that time in variable and add hours.minutes or second but I am not able to add that in the time that is stores in a variable.
Time... (9 Replies)
Discussion started by: anuragpgtgerman
9 Replies
7. Shell Programming and Scripting
the given time is:
12:13:00
how do i subtract a 10 minutes from any given time?
date '12:13:00' '-10 min'
also tried this:
date +12:13:00 '-10 min' (2 Replies)
Discussion started by: SkySmart
2 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I am reading a particular date from a file using below command
WFLWDATE=$(sed '2q;d' FileA.prm)
The echo command outputs the correct date in variable WFLWDATE
Now I want to subtract 5 minutes from this variable. I am on AIX and unable to get anything working as expected.
Can you... (1 Reply)
Discussion started by: vrupatel
1 Replies
9. Shell Programming and Scripting
INPUT:
16:45:51 10051 77845
16:45:51 10051 77845
16:46:52 10051 77846
16:46:53 10051 77846
Match the last PID then subtract second line time with first line.
Please help me with any command or script. (3 Replies)
Discussion started by: vivekn
3 Replies
10. Shell Programming and Scripting
Hello all,
Info:
System RedHat 7.5
I need to create a script that based on the creation time,
if the file is older then 5 minutes then execute some stuff, if not exit.
I thought to get the creation time and minutes like this.
CreationTime=$(stat -c %y /tmp/test.log | awk -F" " '{ print... (3 Replies)
Discussion started by: charli1
3 Replies
LEARN ABOUT DEBIAN
uri::fetch::response
URI::Fetch::Response(3pm) User Contributed Perl Documentation URI::Fetch::Response(3pm)
NAME
URI::Fetch::Response - Feed response for URI::Fetch
SYNOPSIS
use URI::Fetch;
my $res = URI::Fetch->fetch('http://example.com/atom.xml')
or die URI::Fetch->errstr;
print $res->content;
DESCRIPTION
URI::Fetch::Response encapsulates the response from fetching a feed using URI::Fetch.
USAGE
$res->content
The contents of the feed.
$res->uri
The URI of the feed. If the feed was moved, this reflects the new URI; otherwise, it will match the URI that you passed to fetch.
$res->etag
The ETag that was returned in the response, if any.
$res->last_modified
The Last-Modified date (in seconds since the epoch) that was returned in the response, if any.
$res->status
The status of the response, which will match one of the following enumerations:
o URI::Fetch::URI_OK()
o URI::Fetch::URI_MOVED_PERMANENTLY()
o URI::Fetch::URI_GONE()
o URI::Fetch::URI_NOT_MODIFIED()
$res->http_status
The HTTP status code from the response.
$res->http_response
The HTTP::Response object returned from the fetch.
$res->is_success
$res->is_redirect
$res->is_error
Wrappers around the "$res->response" methods of the same name, for convenience.
$res->content_type
The Content-Type header from the response.
AUTHOR & COPYRIGHT
Please see the URI::Fetch manpage for author, copyright, and license information.
perl v5.12.4 2011-08-29 URI::Fetch::Response(3pm)