Search Results

Search: Posts Made By: aliva Dash
1,975
Posted By MadeInGermany
sed -n 's/[^[]*\[\([^]]*\)\].*/\1/;1p;$p;'...
sed -n 's/[^[]*\[\([^]]*\)\].*/\1/;1p;$p;' logfile > a.out
< a.out awk -F'[ :]' '
BEGIN{
m["Jan"]=0
m["Feb"]=31
m["Mar"]=59
m["Apr"]=90
m["Mai"]=120
m["Jun"]=151
m["Jul"]=181
m["Aug"]=212...
1,975
Posted By Jotne
Why use all this temp file? Change your script...
Why use all this temp file?
Change your script to:
var1=$(sed -n 1p test.sh | awk -F"[][]" '/INFO :/ {print $2}')
var2=$(sed -n '$p' test.sh | awk -F"[][]" '/INFO :/ {print $2}')
diff=$(($(date...
1,137
Posted By Don Cragun
You could try something like: ssh...
You could try something like:
ssh username@server 'while [ ! -f path/file.txt ]
do
if [ $(date +%H%M) -ge 2330 ]
then echo "File did not arrive today" |
...
1,137
Posted By joeyg
Two thoughts
1. Know how long you want to try to run this for. You are waiting, so convert this to how many times it should try - maybe 120 - with a counter, and exit out of loop when the counter reaches that...
Showing results 1 to 4 of 4

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