Skip to content

codersven/shutdownpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

This script shutdowns a pc. It begins to find the current date then it find the time when the pc was turned on to calculate the days until end of the year and when I will go to retirement then find out the the logname - when the lognames equals to sven (my name) then write Sven otherwise the login name

then find the current date and time for a greeting dependent the time. For example when it is 13 (1pm) in Germany, then the greeting should be "Good day Sven. Now it is 13.00. The pc was turned on at 11.00 (11am).

Next step is to move all PDF files to the Folder PDF (I don't like so many PDF files in the home directory), the same with the "Download" folder. When you have downloaded a PDF file and you forget to move it. The following step is to delete the rss files. When you want to add some rss files for your RSS-Feed Reader. In some cases you click on it and instead of the xml file, the rss will be downloaded.

Next the Trash folder will be deleted after a inactive question if you want to do it. In this case you should install the program trash-empty. The script will check whether the program is installed or not.

Next to delete the cache of the Python modules. The last step is to ask the user whether there is a reboot or a shutdown. If you don't enter r or s then the script will break and end it.

About

How to shutdown your pc with a bash script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages