#! /bin/sh
# chkconfig: 35 99 01
# description: Toshiba RD Client
export LANG=POSIX
export LC_CTYPE=ja_JP.UTF-8
export LC_NUMERIC="POSIX"
export LC_TIME="POSIX"
export LC_COLLATE="POSIX"
export LC_MONETARY="POSIX"
export LC_MESSAGES="POSIX"
export LC_PAPER="POSIX"
export LC_NAME="POSIX"
export LC_ADDRESS="POSIX"
export LC_TELEPHONE="POSIX"
export LC_MEASUREMENT="POSIX"
export LC_IDENTIFICATION="POSIX"
export LC_ALL=
case "$1" in
start)
/usr/bin/java -jar /usr/local/bin/RDService.jar -p 5500:5509 -b 10485760 -d /srv/ftp/Video -n LinuxSV &
;;
stop)
kill `ps ax | grep java | grep RDService | gawk '{print $1}'`
sleep 3
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage rdservice [start|stop|restart]"
esac
# chkconfig --level 35 rdservice on
だいたい 10Mbps くらいしか出ていないっぽい
grape:/srv/ftp/Video # cat /etc/cron.hourly/cron2underbar #!/bin/bash VIDEO_HOME="/srv/ftp/Video" if [ -f "$VIDEO_HOME/lock" ] then exit 0 fi ls $VIDEO_HOME | grep -i mpg | grep -i ":" | while read src do dest=${src//":"/"_"} mv "$VIDEO_HOME/$src" "$VIDEO_HOME/$dest" done grape:/srv/ftp/Video #