Skip to content

execute a command when computer CPU/net/disk load is low

License

Notifications You must be signed in to change notification settings

keltar/idlecmd.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Execute specified command when computer is idle

Note: depends on python psutil

Usage

Shutdown when CPU load keeps low for 60 seconds

./idlecmd.py --cpu --time=60 --run="shutdown -h 0"

Echo "finished" when network load drops below 2 megabytes per second and keeps low for 10 seconds (default value of time)

./idlecmd.py --net --net-rule="<2M" --run="echo finished"

About

execute a command when computer CPU/net/disk load is low

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages