Corrected screen mail script and removed [currently] unused code
Not sure what I was thinking with the first part...clearly I wasn't (indeed, the system I made the initial modification on did not have multiple email addresses).org
parent
a1522f9784
commit
94b6581e1c
|
@ -47,7 +47,7 @@ while [ "$( ps | grep $parent)" ]; do
|
||||||
printf "%s", "\005{+ mw}[\005{+b}"
|
printf "%s", "\005{+ mw}[\005{+b}"
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
total += total + ( $1 - $2 )
|
total = ( $1 - $2 )
|
||||||
count += $1
|
count += $1
|
||||||
printf "%d ", total
|
printf "%d ", total
|
||||||
}
|
}
|
||||||
|
@ -58,11 +58,6 @@ while [ "$( ps | grep $parent)" ]; do
|
||||||
printf "%s%d%s", "\005{+ my}!", count, "\005{-}"
|
printf "%s%d%s", "\005{+ my}!", count, "\005{-}"
|
||||||
|
|
||||||
printf "\n"
|
printf "\n"
|
||||||
|
|
||||||
if ( total > 0 )
|
|
||||||
print "mail" > "/tmp/.keyind"
|
|
||||||
else
|
|
||||||
print "" > "/tmp/.keyind"
|
|
||||||
}'
|
}'
|
||||||
|
|
||||||
sleep 30
|
sleep 30
|
||||||
|
|
Loading…
Reference in New Issue