Re: Cache only some URLs

"Jason F. McBrayer" <[email protected]>
Newsgroups gmane.comp.web.polipo.user
Message-ID <[email protected]>
On Wed, 14 Dec 2011 18:47:44 +0100, Shark wrote:

> Now I have just another question: is there a way in polipo to
> dynamically "understand" if there is connection or not?
>
> I don't want to set the "proxyOffline" to "yes" everytime I am 
> offline
> and to "no" when I return back online.

If you are running on a Unix-like system, there are probably scripts 
that run automatically when your network interface goes up or down (to 
handle the details of setting up the connection). On a current Linux, 
this is usually done by NetworkManager; on other systems, there's likely 
to be scripts with names like ifup-eth0 or such. You can add the curl 
command line someone else mentioned in this thread to one of these 
scripts.

-- 
+-----------------------------------------------------------+
| Jason F. McBrayer [email protected] |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors. --- The Dhammapada |


------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.