repo.or.cz
/
recordtv.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Kill radio 4 playback when starting recording
[recordtv.git]
/
scripts
/
move_to_server.sh
blob
679d6d770bbbce49e412eafd2b2b2c713c1f381a
1
#!/bin/bash
2
3
echo
$1
4
ssh
10.0.1.8
mkdir
-p
"Videos/Wii/
$1
"
5
ssh
10.0.1.8
rmdir
"Videos/Wii/
$1
"
6
7
if
[[
"
$1
"
== *
.rtvinfo
]];
then
8
echo
cp
$1
..
/
Recorded
/
old
/
9
cp
$1
..
/
Recorded
/
old
/
10
fi
11
12
scp
-q
"
$1
"
"10.0.1.8:Videos/Wii/
$1
"
&&
rm
"
$1
"
13