shutdown script
The problem is that i want the password typed in.
i know almost nothing about scripting because i have just taken a quick loock at it. i want to do a script to shut down my computer. i started with su echo "xxx" shutdown -h now But as you can amadgin that got me nowere. i have tried numerous things. I have searched the net and found nothing. with this it still prompts me for the password, but i want it all to be done in the script. well you got the idea. Please help. |
Code:
#!/bin/bash Don't forget to chmod +x the script and put it somewhere you can run it. |
Re: shutdown script
Quote:
be prompted for a password? Cheers, Tink |
All times are GMT -5. The time now is 11:51 PM. |