Archive for » November 13th, 2009«

How to generate the password from shell (SSH)?

If you use SSH, use mkpasswd command for creating passwords…

root@gunjan[~]#mkpasswd -l 10 -d 3 -C 3 -s 2
L]4P@V6ii3

Cron to unzip the .zip file?

You can set the cron to unzip the .zip file. Following will be your cron setting

For example
* * * * *  server path of unzip (usr/bin/unzip)  /home/username/public_hrml/ path of the file.

You can check the path fir zip by using following command

root@gunjan[]#which zip
/usr/bin/zip