Quote:
Originally Posted by rebornor
-Actually I wanna do a demo under linux.It has below function step by step.
1.Login into the GUI auto(root password 666666)
2.record some info to log.--ok
3.after 1 min reboot.
I tried to use the crontab to realize most funtion,but not enter the GUI desktop.
So could you help realize the 1&3 function. Shell or c Demo is ok.
Thanks in advance.
|
In order to accomplish step 1, you can use the GUI.
System>Administration>Login Screen
Select the Security tab
Check the "Enable Automatic Login" box and select the user from the drop-down
You can configure a login script to run "shutdown -r +1" which will reboot the server after one minute.
I'm not sure why you would want to do that though because you're basically creating a reboot loop. The server reboots, automatically logs in, reboots after 1 minute, automatically logs in, etc.
In fact, I would not recommend doing this at all.