Search Results

Search: Posts Made By: raj48
5,181
Posted By raj48
It was my mistake, I changed the code to ...
It was my mistake, I changed the code to


epoch_from_date="`/progs/bin/date +%s -d "$from_date"`"
epoch_to_date=\"`/progs/bin/date +%s -d "$to_date"`\"



and its working fine. Thanks...
5,181
Posted By raj48
Thanks for clarification! I tried this...
Thanks for clarification!

I tried this modified code


#!/usr/bin/ksh
set -x
for s in server ; do
ssh -T $s <<- "EOF"
from_date="12-Jan-2015 12:02:09"
to_date="24-Jan-2015 13:02:09"...
5,181
Posted By raj48
Convert a date stored in a variable to epoch date
I am not able to pass date stored in a variable as an argument to date command. I get current date value for from_date and to_date


#!/usr/bin/ksh
set -x
for s in server ; do
ssh -T $s...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 07:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy