10-08-2009
10 More Discussions You Might Find Interesting
1. Tips and Tutorials
The GNU date command in full of goodies but not when it comes to calculate a date or time difference. Here is what I came up with after looking to more than one solution.
Code should be self explaining.
#!/bin/bash
date2stamp () {
date --utc --date "$1" +%s
}
stamp2date (){
... (0 Replies)
Discussion started by: ripat
0 Replies
2. Shell Programming and Scripting
I have a CSV (comma separated vaule) file whose entries resemble
Area,\\ntsvsp02\vmcs\download\files\Areas.dat,1,20090303,0,Import Complete,2009-03-02 04:23:00
Product,\\ntsvsp02\vmcs\download\files\items.dat,1,20090303,0,Import Complete,2009-03-02 04:23:00... (3 Replies)
Discussion started by: zainravi
3 Replies
3. Shell Programming and Scripting
Hi
I have this simple script:
#!/bin/bash
date1=2009:07:15:12:36
date2=2009:07:15:12:16
echo $date1
echo $date2
datediff=
#datediff=date1-date2
echo datediff is$datediff
How do i return the difference in seconds? (6 Replies)
Discussion started by: carp.dk
6 Replies
4. Shell Programming and Scripting
Hi,
We have a server in US and hence while the command "date" is given it gives the output in EDT. If I want the date output in MET, how can I get it. Please let me know how I could do it in the script which is ksh. Thanks. (1 Reply)
Discussion started by: jmathew99
1 Replies
5. Shell Programming and Scripting
Hi,
I'm having two fields in the file
F1|F2
20111220|102000
F1 ->YYYYMMDD
F2 ->HHMMSS
Now, I need to compare this with current date & time and need to return the difference value in hours. Already, I checked with datecalc from the forum. So, need hints from Shell Gurus.
Thanks (10 Replies)
Discussion started by: buzzusa
10 Replies
6. Shell Programming and Scripting
Hi
Summary:
- Script will take 2 arguments
- Argument 1: Date/Time value in a particular format
- Argument 2: TimeZone value
Examples:
Argument 1:
a. "May 11, 2012 08:00:00 AM"
b. "Dec 21, 2012 12:21:12 PM"
c. "Oct 2, 2012 05:00:00 PM"
Argument 2:
a. MT or MST or MDT
b. ET
c.... (4 Replies)
Discussion started by: anuragpgtgerman
4 Replies
7. UNIX for Dummies Questions & Answers
I'd like to convert a date string in the form of sun aug 19 09:03:10 EDT 2012, to unixtime timestamp using awk.
I tried
This is how each line of the file looks like, different date and time in this format
Sun Aug 19 08:33:45 EDT 2012, user1(108.6.217.236) all: test on the 17th
... (2 Replies)
Discussion started by: bkkid
2 Replies
8. Solaris
I have a cluster of two Solaris server (veritas cluster). one working and the other is standby
I am going to change the date on them , and am looking for a secure solution as it is giving an important service.
my opinion is that the active one doesn't need to be restarted (if I don't change the... (1 Reply)
Discussion started by: barry1946
1 Replies
9. Shell Programming and Scripting
I'm looking for a way to have the "date" command output the date in a specific format.
I'm not familiar with the different ways to use the date command at all. i read up on it, but i dont get how to manipulate it.
i know that i can get the date format to give me a format like:
2012-10-13... (6 Replies)
Discussion started by: SkySmart
6 Replies
10. Shell Programming and Scripting
I am trying to convert local time to time in Ireland. Instead it is going the opposite direction (taking the local time as it if were in Ireland and displaying that the time would be here).
$ echo "$TZ"; date; date --date='TZ="Europe/Dublin" '"$(date)"
America/Phoenix
Mon, Apr 13, 2015... (7 Replies)
Discussion started by: Michael Stora
7 Replies
LEARN ABOUT DEBIAN
lfc-dli
LFC-DLI(8) LFC Administrator Commands LFC-DLI(8)
NAME
lfc-dli - start the LFC Data Location Interface server
SYNOPSIS
lfc-dli [ -l log_file ]
DESCRIPTION
The lfc-dli command starts the LFC Data Location Interface server. This command is usually executed at system startup time
(/etc/rc.local). This will create a pool of threads, look for requests and pass them to the LFC. When a request has been completed, the
thread becomes idle until it is allocated to another request.
All error messages and statistical information are kept in a log.
The Data Location Interface server listen port number can be defined on client hosts and on the server itself in either of the following
ways:
setting an environment variable DLI_PORT
setenv DLI_PORT 8085
an entry in /etc/shift.conf like:
DLI PORT 8085
If none of these methods is used, the default port number is taken from the definition of DLI_PORT in dli_server.h.
In the log each entry has a timestamp. For each user request there is one message giving information about the requestor (hostname) and
one message DLI98 giving the request itself. The completion code of the request is also logged.
OPTIONS
-l log_file
Specifies a different path for the LFC Data Location Interface server log file. The special value syslog will send the log messages
to the system logger syslogd.
FILES
/var/log/lfc-dli/log
EXAMPLES
Here is a small log:
05/18 16:27:21 1942 dli: started
05/18 22:10:33 1942,0 listReplicas: request from lxb2016.cern.ch
05/18 22:10:33 1942,0 listReplicas: DLI98 - listReplicas lfn:/grid/dteam/foo888
05/18 22:10:34 1942,0 listReplicas: returns 0
05/18 22:12:10 1942,0 listReplicas: request from lxb2016.cern.ch
05/18 22:12:10 1942,0 listReplicas: DLI98 - listReplicas guid:41b20a76-2287-4f81-9750-7e2eb4d199c8
05/18 22:12:11 1942,0 listReplicas: returns 0
SEE ALSO
Clogit(3), lfc-server(8)
LCG
$Date$ LFC-DLI(8)