search for: diff_day

Displaying 4 results from an estimated 4 matches for "diff_day".

Did you mean: diff_days
2017 Feb 08
3
Users list and the date the password will expire
...[ $set_date ] && [ $set_date -gt 1 ]; then > > > > UNIXTimeStamp=$((($set_date/10000000)-11644473600)) > > then_sec=`date -d "1970-01-01 $UNIXTimeStamp sec > > GMT" +%s` > > now_sec=`date +%s` > > diff_days=$(( ( $now_sec - $then_sec )/60/60/24 )) > > exp_days=$(( $max_pwAge - $diff_days )) > > > > if [ $exp_days == 90 ] || [ $exp_days == 60 ] || [ > > $exp_days == 30 ]; then > > > > mail_string=`ldbsearch -H...
2017 Feb 08
4
Users list and the date the password will expire
...et | tr -dc '0-9'` if [ $set_date ] && [ $set_date -gt 1 ]; then UNIXTimeStamp=$((($set_date/10000000)-11644473600)) then_sec=`date -d "1970-01-01 $UNIXTimeStamp sec GMT" +%s` now_sec=`date +%s` diff_days=$(( ( $now_sec - $then_sec )/60/60/24 )) exp_days=$(( $max_pwAge - $diff_days )) if [ $exp_days == 90 ] || [ $exp_days == 60 ] || [ $exp_days == 30 ]; then mail_string=`ldbsearch -H /usr/local/samba/private/sam.ldb -s sub -b $basedn cn...
2017 Feb 08
0
Users list and the date the password will expire
...-9'` > > if [ $set_date ] && [ $set_date -gt 1 ]; then > > UNIXTimeStamp=$((($set_date/10000000)-11644473600)) > then_sec=`date -d "1970-01-01 $UNIXTimeStamp sec GMT" > +%s` > now_sec=`date +%s` > diff_days=$(( ( $now_sec - $then_sec )/60/60/24 )) > exp_days=$(( $max_pwAge - $diff_days )) > > if [ $exp_days == 90 ] || [ $exp_days == 60 ] || [ > $exp_days == 30 ]; then > > mail_string=`ldbsearch -H > /usr/local/samba/privat...
2017 Feb 09
0
Users list and the date the password will expire
...amp; [ $set_date -gt 1 ]; then >>> >>> UNIXTimeStamp=$((($set_date/10000000)-11644473600)) >>> then_sec=`date -d "1970-01-01 $UNIXTimeStamp sec >>> GMT" +%s` >>> now_sec=`date +%s` >>> diff_days=$(( ( $now_sec - $then_sec )/60/60/24 )) >>> exp_days=$(( $max_pwAge - $diff_days )) >>> >>> if [ $exp_days == 90 ] || [ $exp_days == 60 ] || [ >>> $exp_days == 30 ]; then >>> >>> mail_...