it cleans out the /home/guest directory and saves the content of various directories under a time-stamped folder, it then mirrors the /home/default directory in the /home/guest and sets the appropriate modes,uid's and gid's.Doesn't your system have an /etc/skel directory for default files like other Unix/Linux systems?
Say that you run this code at one minute before midnight on the 28th of February 2007 your two dir names will be "108:2:29" and "24:60:60". Are you sure that you want to do that? And why declare $wday, $yday and $isdist if you are not going to use them?my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdist) = gmtime(time); $min++; $hour++; $mday++; $sec++; $mon++; $year++; my $count = 0; my @mkdir = ( "$year:$mon:$mday", "$hour:$min:$sec");
In reply to Re: Guest Cleanup
by jwkrahn
in thread Guest Cleanup
by Maze
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |