1
1
Fork 0

added some little scripts for testing and private use

This commit is contained in:
David Starzengruber 2011-01-31 08:08:01 +01:00
parent b7ca747b1f
commit 63aff4b329
5 changed files with 79 additions and 0 deletions

43
audiomount.sh Executable file
View File

@ -0,0 +1,43 @@
#!/bin/bash
sshfs kitt:/data/audio/music /home/david/Music/kitt/
cat /home/david/Documents/code/scripts/kitt.txt
echo "mounting audio storage"
#exaile --debug
sleep 0.8
clear
cat /home/david/Documents/code/scripts/kitt.txt
echo "mounting audio storage"
echo "starting rhythmbox"
sleep 0.8
clear
cat /home/david/Documents/code/scripts/kitt.txt
echo "mounting audio storage"
echo "starting rhythmbox."
sleep 0.8
clear
cat /home/david/Documents/code/scripts/kitt.txt
echo "mounting audio storage"
echo "starting rhythmbox.."
sleep 0.8
clear
cat /home/david/Documents/code/scripts/kitt.txt
echo "mounting audio storage"
echo "starting rhythmbox..."
rhythmbox &> /dev/null
var="no"
while [ $var != "yes" ]; do
echo "unmounting audio storage now? [yes|no]"
read var
done
gksudo umount kitt:/data/audio
echo "audio storage now unmounted"
sleep 0.8
echo "byebye"
sleep 2
exit 0

8
kitt.txt Normal file
View File

@ -0,0 +1,8 @@
_..-------++._
_.-'/ | _|| \"--._
__.--'`._/_\j_____/_||___\ `----.
_.--'_____ | \ _____ /
_j /,---.\ | =o | /,---.\ |_
[__]==// .-. \\==`===========/==// .-. \\=[__]
`-._|\ `-' /|___\_________/___|\ `-' /|_.'
`---' `---'

6
sed.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
cat text.txt
echo
sed -i 's/#local_umask=022/local_umask=0007\nfile_open_mode=0770/' text.txt
echo
cat text.txt

10
startjd.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
echo "starting jdownloader"
java -jar /home/david/Software/JDownloader/JDownloader.jar &> /dev/null
echo "exiting"
sleep 1
echo "byebye"
sleep 2
exit 0

12
text.txt Normal file
View File

@ -0,0 +1,12 @@
aeuu
ai
eu
iae
local_umask=0007
file_open_mode=0770
uaeuaieuaie
uia
e
ui
ae
uai