Commit f8e226ea authored by Mario Chirinos's avatar Mario Chirinos

script

parent 06320da7
#!/bin/sh
#$1 stream name
#$2 stream uri
#$3
#===============================================================================
year=$(date +%Y)
month=$(date +%m)
day=$(date +%d)
if [ ! -d "$1" ]; then
mkdir $1
fi
cd $1
if [ ! -d "$year" ]; then
mkdir $year
fi
cd $year
if [ ! -d "$month" ]; then
mkdir $month
fi
cd $month
if [ ! -d "$day" ]; then
mkdir $day
fi
cd $day
$HOME/m3/bin/streamRecorder $2 3000
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment