Summary: Hi Guru's, Need you help write a script to findout the difference between two given time values input ex: 155834 (hr,min,sec) should be able to know t...
Summary: Hi all, I'm using ksh, and have a problem over date formatting and getting the difference between them. First of all, I need to remove some informati...
Summary: Hello, I have a file containig DHCP lease information like the following: 02/01/2007 9:57:32 name/dhcp/1 Activity Protocol 0 04995 10.10.10.12 Lease ...
Summary: Hello, I want to know how to calculate time difference in unix shell script. Time command in unix will not solve my problem because it calculates tot...
Summary: Hi, Here is the problem: How do I calculate the time difference in Unix ? For example time difference between 02 AUG 2006 6:20:30 pm and 04 AUG 2006 ...
Summary: the best thing to do is use perl's stat function #!/usr/bin/perl -w @file_info = stat("../../rel/path/to/file"); $time = time; #calculate the differen...
Summary: Hi, I have a problem that I can't solve here and need your help! I executes a program with "root" and then setuid and setgid to "testuser". In my prog...
Summary: Thats very well possible. But need to know how files are comming on the directory. If its copied with some script with cp -p option then date and time...
Summary: If your times are in 24hr format, don't put 'a.m.' after them! Assuming the '.I' and '.O' are not part of your time strings: dm=$((${t2#*:}+60*${t2%:*...
Summary: 60 seconds in a minute and 3600 seconds in an hour. Use the set command to parse the time string into 3 arguments: #!/bin/ksh time_a=04:35:54 set - $...
Summary: Thanks Jerry - good info. On the example exec command that you posted, was that one line or two lines? I am guessing that it was: exec 3> /tmp/junk....
Summary: Not much different in istalling Sol 7 either via GUI or Console (ASCI Term). I hope you the following info handy: 1. Time Zone 2. IP address 3. Host n...
Summary: Hello, I have 2 solaris machines, the problem that i am facing is that: simple commands like grep, awk, make, etc are being taken from different folde...
Summary: The main difference in the two would be in resources consumed. I prefer to use the simplest command possible. awk can do so much more that cut, so o...
Summary: I didn't notice before but you have got '1=$0' instead of 'l=$0' and have substituted the number 'one' for the letter 'ell' like this elsewhere in the...
Summary: The command: expr $(date +%s) - $(date +%s -r file.txt) gives you the difference in seconds between the current time and last modification time of fil...
Summary: I'm a new linux user and am really having some problems I'd really appreciate help with: 1. I installed Linux on a machine running Windows NT 4.0 Se...
Summary: Hello all. Thanks for such a great forum to read and learn from. A perplexing issue on a Solaris 7 implementation. I found that one of my disk slices ...
Summary: You device path will probably be different in sco but for solaris, it would be something like mkdir /tmp/mnt mount /dev/dsk/c0t0d4s3 /tmp/mnt ...
Summary: Can anyone help me with shell script to this problem. I have two files as shown below. I want to loop through the two files by comparing column1, row...
Summary: Hi, Simple question: why is AF_INET6 defined differently in Linux and in FreeBSD (socket.h) with values of 10 and 28 respectively? How do these 2 OS'e...
Summary: Lessons from the Untold Success Story: Outsourcing Engineering and Facilities Management STEVE BURDON, University of Technology, Sydney AJAY BHALLA, C...
Summary: Given data separated by tabs, fifth field is elapsed time given as hh:mm Script computes average elapsed time. using a template that has one action st...