dickiebird
Programmer
Guys
Any way I can check / force a numeric result ?
Given :
typeset-i seconds
seconds=`lsuser -a time_last_login $user|cut -d"=" -f2|cut -c1-10`
I need to check $seconds > 0 , but if the result of lsuser is blanks/nulls/spaces, then the script returns :
0403-009 The specified number is not valid for this command.
Any thoughts?
TIA ;-)
Dickie Bird
Honi soit qui mal y pense
Any way I can check / force a numeric result ?
Given :
typeset-i seconds
seconds=`lsuser -a time_last_login $user|cut -d"=" -f2|cut -c1-10`
I need to check $seconds > 0 , but if the result of lsuser is blanks/nulls/spaces, then the script returns :
0403-009 The specified number is not valid for this command.
Any thoughts?
TIA ;-)
Dickie Bird
Honi soit qui mal y pense