Changeset 8537


Ignore:
Timestamp:
05/22/07 16:24:37 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/checkscriptrunning

    r8536 r8537  
    3535then
    3636   printprocesslog "WARN two many command line options given in $@ -> exit"
    37    finish
     37   finish >/dev/null
    3838fi
    3939
    4040path=`dirname $0`
    41 script=$path/$1
    42 if ! ps  aux | grep "$script" | grep -v grep >/dev/null
     41script="/bin/sh "$path/$1
     42if ! ps -o "%a" -C '$1' | grep -x "$script" >/dev/null
    4343then
    4444   printprocesslog "INFO starting $script"
Note: See TracChangeset for help on using the changeset viewer.