08-21-2012
Agama, I am getting syntax error for this. Please check.
Quote:
awk: syntax error near line 2
awk: illegal statement near line 2
awk: syntax error near line 3
awk: illegal statement near line 3
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi experts,
I am reading two log files and passing dates as output to a txt file.
Code is given below:
echo "Start Time:" >> Report.txt
cat start.log | while read LINE1
do
echo $DATE1 >> Report.txt
done
echo "End Time:" >> Report.txt
cat end.log | while read LINE2
... (7 Replies)
Discussion started by: Sreejith_VK
7 Replies
2. UNIX for Dummies Questions & Answers
Hi, I'm a newbie to unix. I have a txt file with my data, a list of events. Each event comes with a unix time. I want to seperate a months worth of events into those that occur during the day, and those at night. I have no clue how to go about this, please can someone push me in the right... (6 Replies)
Discussion started by: pmasterkim
6 Replies
3. Shell Programming and Scripting
i would need some help in setting the value of a variable (TIME_NOW) depending on the time of the day ...e.g.
if today's date is 12th April 2009 and if the current time is between midnight and 16:59:59 hrs then the TIME_NOW should be yesterday's date i.e. TIME_NOW=11
else if the current time... (3 Replies)
Discussion started by: zainravi
3 Replies
4. Shell Programming and Scripting
I manage to find and proces one script, now i need to automate this script for every day at the same time... (2 Replies)
Discussion started by: voltaza
2 Replies
5. Shell Programming and Scripting
Hello All,
I have a problem calculating the time difference between start and end timings...!
the timings are given by 24hr format..
Start Date : 08/05/10 12:55
End Date : 08/09/10 06:50
above values are in mm/dd/yy hh:mm format.
Now the thing is, 7th(08/07/10) and... (16 Replies)
Discussion started by: smarty86
16 Replies
6. Shell Programming and Scripting
Hello!
I need to calculate number of days between two dates.
The first date is in format of string.
The second one is in format of date (current date):
#!/usr/bin/ksh
export ORACLE_HOME=/software/oracle/PROD10gR2
cd /etc/ORACLE/WALLETS/oracle
export EXP_DATE=`. $ORACLE_HOME/bin/orapki cert... (1 Reply)
Discussion started by: yoavbe
1 Replies
7. AIX
I have a question i need clarification. We had a problem on a p520 system and had to pull the battery on the service processor card. That did the trick and system booted. We forgot to set the time in the service processor before booting. Once AIX was booted we changed the date and time there. ... (1 Reply)
Discussion started by: ryan0911
1 Replies
8. Shell Programming and Scripting
Hi Friends,
I have 2 varaibles which contain
START=`date '+ %m/%d/%y %H:%M:%S'`
END=`date '+ %m/%d/%y %H:%M:%S'`
i want the time difference between the two variables in Seconds.
Plz help. (2 Replies)
Discussion started by: i150371485
2 Replies
9. Shell Programming and Scripting
Need assistance . Below code gives me the date but I wanted output as day of the week (wday) .
Code:
use Time::Local;
my $time=timelocal(1,2,3,9,11,2013);
$theTime = localtime($time);
print "$theTime\n";
Result:
Mon Dec 9 03:02:01 2013
Wanted output as only Mon (2 Replies)
Discussion started by: ajayram_arya
2 Replies
LEARN ABOUT REDHAT
pvmfhostsync
HOSTSYNC(3PVM) PVM Version 3.4 HOSTSYNC(3PVM)
NAME
pvm_hostsync - Get time-of-day clock from PVM host.
SYNOPSIS
C #include <sys/time.h>
int info = pvm_hostsync( int host, struct timeval *clk,
struct timeval *delta )
Fortran call pvmfhostsync( host, clksec, clkusec, deltasec, deltausec, info )
PARAMETERS
host TID of host.
clk (or clksec and clkusec) Returns time-of-day clock sample from host.
delta (or deltasec and deltausec) Returns difference between local clock and remote host clock.
DESCRIPTION
pvm_hostsync samples the time-of day clock of a host in the virtual machine and returns both the clock value and the difference between
local and remote clocks.
To reduce the delta error due to message transit time, local clock samples are taken before and after reading the remote clock. Delta is
the difference between the mean local clocks and remote clock.
Note that the delta time can be negative. The microseconds field is always normalized to 0..999999, while the sign of the seconds field
gives the sign of the delta. For example:
3.25 Sec = 3,250000
0 = 0,0
-1 uSec = -1,999999
-1 Sec = -1,000000
-1.1 Sec = -2,999000
In C, if clk or delta is a null pointer, that parameter is not returned.
ERRORS
If pvm_hostsync is successful, it returns PvmOk. These error conditions can be returned by pvm_hostsync
PvmSysErr
pvmd not responding.
PvmNoHost
specified host not in virtual machine.
PvmHostFail
host is unreachable (and thus possibly failed)
SEE ALSO
pvm_config(3PVM)
20 February, 1994 HOSTSYNC(3PVM)