Created
June 26, 2010 02:23
-
-
Save yaotti/453701 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sid=`pgrep screen` | |
if [ `echo $sid | wc -l` = 1 ];then | |
cd /home/yaotti/tools/tiarra | |
screen -S $sid -p 0 -X exec /home/yaotti/tools/tiarra/tiarra --config=/home/yaotti/tools/tiarra/tiarra.conf | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment