View cronpod.sh
#!/bin/bash | |
isrunning=$(ps -ef | grep -v grep | grep "podcast.sh" | wc -l) | |
if [ "$isrunning" -gt "0" ]; then | |
echo "[ALREADY RUNNING]" | |
exit 0 | |
else | |
sudo /home/[your username]/podcast.sh | |
exit 0 |
View podcast.sh
#!/bin/bash | |
# Updates podcasts, downloads new episodes, then normalizes them. | |
if [ "$1" = "-h" ]; then | |
echo "Updates podcasts, downloads new episodes, then normalizes them." | |
echo "podcast.sh" | |
exit 0 | |
fi | |
SAVEIFS=$IFS |
View normalize.sh
#!/bin/bash | |
# Normalizes the audio of the input to the output. | |
if [ "$1" = "-h" ]; then | |
echo "Normalizes the audio of the input into the output." | |
echo "normalize.sh [input] [output=normalized.ext]" | |
exit 0 | |
fi | |
normalize() { |