Skip to content

Instantly share code, notes, and snippets.

@yaotti
Created June 26, 2010 02:23
Show Gist options
  • Save yaotti/453701 to your computer and use it in GitHub Desktop.
Save yaotti/453701 to your computer and use it in GitHub Desktop.
#!/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