Want to run a few scripts before KDE shutdown, where can I add them.
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 220.127.116.11, KDE 3.5.8 and KDE 4.0 beta, Plu
Thats what I had in mind. Let me guess here. I would create a script here to do all my smaller scripts then name it something like scriptshutdown. Here is my guess here I would edit the file:/etc/kde/kdm/kdmrc and change this section:
Of coarse I would add poweroff to the last line in the new script. I am not sure it will run a script from here or not. Would there be a better place to link the new shutdown script to. I don't know if I would use sudo here or not. If I make the script available to all it should work fine.
Here is a few things I would like to accomplish with the script. It would copy certain files like bookmarks and email to another drive for backup and be available in an event of the main drive crash. Send this output to display on the screen using xterm to show all is done. Of coarse let it pause a few seconds using ping as a pause statement. Then powerdown. Doing the script I can do fine, just don't know where to put it mostly.