nice i found how to killall on this arm linux distro it was at wrong place, now works
ok find the problem is a good solution too (the perfect one :) ) but it's running now i think i will not have more problems =) any news about this problem contact the list :) thanks everybody 2012/2/13 William Brown <[email protected]>: > Maybe you can use pidof to get pid and pkill to terminate owhttpd by pid. > > #!/bin/sh > # > # is owhttpd running > pidof owhttpd >/dev/null > if [ $? != 0 ] > then > pkill (you need to add options here) > fi > exec /opt/owfs/bin/owhttpd (options here) > > > On 02/13/2012 07:13 AM, Roberto Spadim wrote: >> hi guys, i´m having to restart my owhttpd each 5 minutes >> can anyone help me with a bash script to do this job? >> >> i was thinking about runnning the bash as a background process >> /etc/rc.d/rc0.d/owhttpd& >> >> inside owhttpd i have: >> >> #!/bin/sh >> real_owhttpd=/opt/bin/owhttpd >> while true; do >> $real_owhttpd -d /dev/ttyUSB* -p 80& >> sleep 300; >> killall $real_owhttpd >> done >> >> >> does anyone know how to do this but without using killall? some arm >> distros don´t have killall >> >> ------------------------------------------------------------------------------ >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 >> _______________________________________________ >> Owfs-developers mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/owfs-developers >> > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Owfs-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/owfs-developers > -- Roberto Spadim Spadim Technology / SPAEmpresarial ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Owfs-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/owfs-developers
