Monday, January 18, 2010

Crontab for other user

crontab -l -u cruise
crontab -e -u cruise

Kill all the process by a user in Linux

kill -9 `ps -ef|grep cruise |awk '{print $2}'`

Monday, January 4, 2010

Last Restart time for Windows workstation

To find out last reboot

Open command prompt and type below command. Second line of the output will display the last restart of workstation/server.

net statistics workstation | more

eg

Workstation Statistics for \\"workstation name"
Statistics since 12/24/2009 4:27 AM

Bytes received 3192754767

Last restart for Windows

To find out last reboot

Open command prompt and type below command. Second Line of the output will display the last start time of the workstation/server.

net statistics workstation | more