krishnandu
Level F
Hi, I'm trying to achieve this in Ubuntu Lucid.
I wanted to suspend my pc from shell script. So wrote a shell script..
Now I want it to run without asking for password, so I chmod it as root : sudo chmod 777 filename.sh
Till now it was fine.
Now I can't find any other way to wake-up without pressing the power button. If I'm missing something please help me out here.
I want my pc to wake-up using command(I don't know what command for wake up), that I'll sending though serial-port.
So is this possible?? And if yes, then how??
I've some more query though...(sorry, didn't googled / researched about these)
1. I've disabled GUI login(auto-login ), so I'm placed with CLI login, how can I login there automatically?? (Without typing username/password)
2. How to run a script automatically on login??
I wanted to suspend my pc from shell script. So wrote a shell script..
Code:
#!/bin/bash
pm-suspend
Till now it was fine.
Now I can't find any other way to wake-up without pressing the power button. If I'm missing something please help me out here.
I want my pc to wake-up using command(I don't know what command for wake up), that I'll sending though serial-port.
So is this possible?? And if yes, then how??
I've some more query though...(sorry, didn't googled / researched about these)
1. I've disabled GUI login(auto-login ), so I'm placed with CLI login, how can I login there automatically?? (Without typing username/password)
2. How to run a script automatically on login??