5

Unable to convert paaswd lastupdate value into scalar local format

view full story
linux-howto

http://www.unix.com – Dear all, I am unable to get the desired result upon executing the below script. the problem is at `perl -le 'print scalar localtime $msecage'` ouput which gives the following result "Thu Jan 1 05:00:00 1970" instead of "Tue Nov 13 10:30:56 2012" but when I run the same command from shell prompt by putting the actual value infront of perl localtime perl -le 'print scalar localtime 1352784656 it gives the correct result. Please help Code: #!/usr/bin/ksh ################# This script will print the User Password Max Age, Last Change, Calculate Passwd e (HowTos)