{"id":100,"date":"1997-09-09T01:36:29","date_gmt":"1997-09-09T09:36:29","guid":{"rendered":"http:\/\/www.birdhouse.org\/betips\/?p=100"},"modified":"1997-09-09T01:36:29","modified_gmt":"1997-09-09T09:36:29","slug":"get-connected-stay-connected-pt-i","status":"publish","type":"post","link":"https:\/\/www.betips.net\/?p=100","title":{"rendered":"Get\n connected, stay connected, pt. I"},"content":{"rendered":"<p>If you have problems keeping your PPP connection alive, it may help to send out regularly spaced ping commands to keep communication between you and your ISP alive. Here&#8217;s an addition you can make to your ppp-script, as well as a small separate script that sends out ping commands whenever the connection is up.<br \/>\nAdd to <code>~\/config\/etc\/ppp-script<\/code>:<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n<code><br \/>\nif  [ \"$1\" =  \"up\" ]<br \/>\nthen<br \/>\n\ttouch \/var\/tmp\/ppp_up<br \/>\n sits there<br \/>\n\tkeep_alive &amp;<br \/>\n\tdate \"+%D %T sess $3 started on $2 as $4\" >> \/var\/log\/online.log<br \/>\n\tMediaPlayer \/boot\/home\/config\/sounds\/Startup Sounds\/GoodVibesStart.aiff &amp;<br \/>\n\t [ $( roster | grep \"GimICQ2\" | wc -l) -eq 0 ]  &amp;&amp;  { Workspaces 3 ;<br \/>\n \/boot\/home\/apps\/GimICQ2\/GimICQ_x86 &amp; }<br \/>\nfi<br \/>\nif   [ \"$1\" = \"down\" ]<br \/>\nthen<br \/>\n\tif [ -f \/var\/tmp\/ppp_up ]<br \/>\n\tthen<br \/>\n\t\ttouch \/var\/tmp\/ppp_down<br \/>\n\t\trm \/var\/tmp\/ppp_up<br \/>\n\t\tdate \"+%D %T sess $3 closed\" &amp;gt;&amp;gt; \/var\/log\/online.log<br \/>\n\t\tMediaPlayer \/boot\/home\/config\/sounds\/Startup Sounds\/DarkStart.aiff &amp;<br \/>\n\telse<br \/>\n\t\tif [ -f \/var\/tmp\/ppp_down ]<br \/>\n\t\tthen<br \/>\n\t\t\trm \/var\/tmp\/ppp_down<br \/>\n\t\telse<br \/>\n\t\t\tMediaPlayer \/boot\/home\/config\/sounds\/System Beeps\/BoingAlert2.aiff &amp;<br \/>\n\t\tfi<br \/>\n\tfi<br \/>\nfi<br \/>\n<\/code><br \/>\n<code><br \/>\nNow create this script: \/boot\/home\/config\/bin\/keep_alive (don't forget to chmod this to 755):<br \/>\nwhile [ -f \/var\/tmp\/ppp_up ]<br \/>\ndo<br \/>\n\tping -c 1 -s 8 www.be.com<br \/>\n\tsleep 10<br \/>\ndone<br \/>\n<\/code><br \/>\nSo these two pieces of code work in tandem to keep your connection humming along happily. You don&#8217;t need to launch any Terminal windows, press any Ctrl-C to quit, or anything else messy. Just connect and disconnect manually from the Deskbar replicant.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you have problems keeping your PPP connection alive, it may help to send out regularly spaced ping commands to keep communication between you and your ISP alive. Here&#8217;s an addition you can make to your ppp-script, as well as a small separate script that sends out ping commands whenever the connection is up. Add [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[10],"class_list":["post-100","post","type-post","status-publish","format-standard","hentry","tag-scripting"],"_links":{"self":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=100"}],"version-history":[{"count":0,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/100\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}