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 | |
## Original Author: RonB123123 | |
## Created: Sept 24, 2008 | |
## From http://ubuntuforums.org/showthread.php?t=928475 | |
## Also includes some code from various other sources | |
## Changed by Nathan Darnell | |
## Adapted by me to work on my RPi systems and be more flexible | |
## Comments welcome as I am more of a Google-r than a programmer | |
## TODO: save to a logfile, change to all functions, |
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 | |
## Author: RonB123123 | |
## Created: Sept 24, 2008 | |
## Description: | |
## Checks if the MySQL + Apache services are running, if not | |
## not then start each service. | |
##From http://ubuntuforums.org/showthread.php?t=928475 | |
echo "Options" | |
echo "1 - Start" |
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 | |
## Author: RonB123123 | |
## Created: Sept 24, 2008 | |
## Description: | |
## Checks if the MySQL + Apache services are running, if not | |
## not then start each service. | |
##From http://ubuntuforums.org/showthread.php?t=928475 | |
echo "Options" |
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 | |
#Copied from wintermute at http://forum.subsonic.org/forum/viewtopic.php?t=1546 | |
#and adjusted to be more genaric and capable of being quickly adapted for multiple programs | |
#Haven't actually tested this yet though... 5/1/2014 | |
PROGRAM= | |
PID="" | |
PATH= | |
function get_pid { | |
PID=`ps ax |grep java |grep $PROGRAM |cut -d " " -f 1` |
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 | |
# Setting up backup directories | |
SUBDIR=RaspberryPi2_backups | |
DIR=/media/1TB/$SUBDIR | |
# Setting up echo fonts | |
red='\e[0;31m' | |
green='\e[0;32m' | |
cyan='\e[0;36m' |
NewerOlder