#!/bin/sh
#--------------------------------
# Lingr Starter shell
#
# @author kazuakiM
#--------------------------------
logFile="/Trashes/#vim/`date +%Y-%m-%d`_Lingr.txt"

# Log file delete
rm -f /Trashes/#vim/`date -v-4d +%Y-%m-%d`_Lingr.txt
# Log file make
touch $logFile
# LimeChat Start
open -a LimeChat
# GateWay Server Satrt
nohup ruby $HOME/.vim/bundle/lingr-irc/lig.rb > /dev/null 2>&1 &
nohup tail -F $logFile|perl -e 'system "growlnotify", "-m",  $_ while(<STDIN>);' &
# Finish
exit 0

#!/bin/sh
#--------------------------------
# Lingr Starter shell
#
# @author kazuakiM
#--------------------------------
logFile="/temp/#vim/`date +%Y-%m-%d`_Lingr.txt"

# Log file delete
rm -f /temp/#vim/`date -v-4d +%Y-%m-%d`_Lingr.txt
# Log file make
touch $logFile
# LimeChat Start
open -a LimeChat
# GateWay Server Satrt
nohup ruby $HOME/.vim/bundle/lingr-irc/lig.rb > /dev/null 2>&1 &
nohup tail -F $logFile|perl -e 'system "growlnotify", "-m",  $_ while(<STDIN>);' &
# Finish
exit 0

--- 
+++ 
@@ -4,10 +4,10 @@
 #
 # @author kazuakiM
 #--------------------------------
-logFile="/temp/#vim/`date +%Y-%m-%d`_Lingr.txt"
+logFile="/Trashes/#vim/`date +%Y-%m-%d`_Lingr.txt"
 
 # Log file delete
-rm -f /temp/#vim/`date -v-4d +%Y-%m-%d`_Lingr.txt
+rm -f /Trashes/#vim/`date -v-4d +%Y-%m-%d`_Lingr.txt
 # Log file make
 touch $logFile
 # LimeChat Start
Update LimeChat output log directory
