[Om2008.9] power on GPS
Matthias Apitz
guru at unixarea.de
Wed Oct 29 12:43:26 CET 2008
El día Wednesday, October 29, 2008 a las 12:02:10PM +0100, Christophe Badoit escribió:
> >
> > killall gpsd
> >
> > which kills the daemon and the script itself:
> >
> > # /etc/init.d/gpsd stop
> > Shutting down gpsd: Terminated
> >
> > I have renamed this script to /etc/init.d/gpsd.sh and now it works fine
> > and as well powers down the card writing 0 into the device file;
> >
> > matthias
>
> Hi,
>
> TIMTOWTDI :)
>
> instead of
>
> killall gpsd
>
> There are lots of better solutions :
>
> pkill -x -o gpsd
The abvove method will as well kill a script with the same name 'gpsd';
>
> Or,
>
> pgrep -x gpsd | grep -v "$$" | xargs -r kill
this is fine now; thx
matthias
--
Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <matthias.apitz at oclc.org> - w http://www.oclc.org/ http://www.UnixArea.de/
b http://gurucubano.blogspot.com/
A computer is like an air conditioner, it stops working when you open Windows
Una computadora es como aire acondicionado, deja de funcionar si abres Windows
More information about the community
mailing list