Re: Aiutino bash :-)
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!
Reply to: