This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# This script can be used to easily clear a print queue | |
# Specify your printer as the first argument | |
E_NO_ARGS=65 | |
if [ $# -eq 0 ] # You must specify a printer as argument. | |
then | |
echo "Please invoke this script with one or more command-line arguments." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# This little script kills the Flashplayer Plugin at | |
# a CPU load above N.* | |
# Fetch the average CPU load: | |
cpuload=$(cat /proc/loadavg | awk '{ print $1 }') | |
if [[ $cpuload = 5.* ]] | |
then $(pkill plugin-containe) # <- Yes without the r | |
fi |