Article 5P6V2 comand line that would simulate pressing the power button

comand line that would simulate pressing the power button

by
krazyivan
from LinuxQuestions.org on (#5P6V2)
Hi,
I am lazy and often fall asleep watching anime on my pc.Trying to conserve energy I'm looking for a way to put the shutdown dialog (as if I were to press the powerbutton) in crontab. Why the dialog and not just `shutdown -h now` you ask? I sometimes work/play late at night on that pc as well, so a dialog window waiting 30 sec that would not kill all my work sounds perfect.
ps. I'm a KDE user.

thanks in advancelatest?d=yIl2AUoC8zA latest?i=IvYY-Ph5a-I:Dhnn45G-k6I:F7zBnMy latest?i=IvYY-Ph5a-I:Dhnn45G-k6I:V_sGLiP latest?d=qj6IDK7rITs latest?i=IvYY-Ph5a-I:Dhnn45G-k6I:gIN9vFwIvYY-Ph5a-I
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments