On Wed, Sep 13 2006, at 14:18:04 +0200, Sandro Tosi wrote:

> potresti proavre cosi':
> 
> PID_obex = `pidof obexserver`
> 
> if [ "x"PID_obex -ne "x" ] ; then
>  ...start obexserver
> fi
> 
> o una cosa simile.

mi sono permesso di ampliarlo un poco e correggerne un piccolo
errore semantico (-eq al posto di -ne, perche' se -ne e' vera => $PID_obex e' 
presente)

#!/bin/bash

while true;
 do
  PID_obex = `pidof obexserver`
  if [ "x"$PID_obex -eq "x" ] ; then
   ...start obexserver
  fi
  sleep 2
 done

Ciao
Filo

-- 
Filippo Biondi
[Ubuntu|Debian] GNU User
Linux Registered User #357105
Proud member of
.:ERLUG:.
no1984.org member - Stop TCG!


-- 
Per REVOCARE l'iscrizione alla lista, inviare un email a 
[EMAIL PROTECTED] con oggetto "unsubscribe". Per
problemi inviare un email in INGLESE a [EMAIL PROTECTED]

To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to