Magellan Linux

Annotation of /alx-src/branches/alxconf-060/bin/wfica-launcher.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5018 - (hide annotations) (download) (as text)
Wed Aug 7 12:37:38 2013 UTC (10 years, 10 months ago) by niro
File MIME type: application/x-sh
File size: 331 byte(s)
-fixed a typo
1 niro 5013 #!/bin/bash
2    
3     sessionfile="$1"
4    
5     if [[ -z ${sessionfile} ]]
6     then
7     echo "No sessionfile given."
8     exit 1
9     fi
10    
11     # session already running? prevents massive double-click attacks
12 niro 5018 if [[ -z $(ps aux | grep "wf[iI]ca ${sessionfile}") ]]
13 niro 5013 then
14     nice -n 19 wfica "${sessionfile}"
15     else
16     echo "Session '${sessionfile}' already running."
17     exit 3
18     fi