DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 23rd January 2013
pawaan pawaan is offline
Fdisk Soldier
 
Join Date: Jan 2013
Posts: 82
Default deproxifying lynx?

thanks for guidance
I'd like to know about something related
if I set in my profile
http_proxy=http://127.0.0.1:8118/
HTTP_PROXY=$http_proxy
export http_proxy HTTP_PROXY

and decided to deproxify lynx surfing without having to relogin , what's to be done ?
the [ export no_proxy="localhost" ] doesn't work.
Reply With Quote
  #2   (View Single Post)  
Old 23rd January 2013
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Welcome pawaan to our forums.

Most members here use the archives for searching/researching topics. We find that keeping threads on a single subjects makes this process simpler, so we ask all members to keep this in mind. If in the course of conversation you would like to discuss an unrelated topic, please start a new thread. This is covered in the forum rules.
Reply With Quote
  #3   (View Single Post)  
Old 23rd January 2013
pawaan pawaan is offline
Fdisk Soldier
 
Join Date: Jan 2013
Posts: 82
Default

Thanks.
I'll keep the rule in mind.
Reply With Quote
  #4   (View Single Post)  
Old 23rd January 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

In both bourne and C shells, use "unset <variable>"
Reply With Quote
  #5   (View Single Post)  
Old 23rd January 2013
pawaan pawaan is offline
Fdisk Soldier
 
Join Date: Jan 2013
Posts: 82
Default

Thanks you.It works.
if I want all open xterm sessions with undergoing processes to learn and apply the new change (unsetting http_proxy) ?
Please consider :
multiple wget mirroring xterm sessions behind proxy and would want to continue mirroring without proxy , without interrupting those processes
Is there a way to extend the unset command to include other running xterms ?
Reply With Quote
  #6   (View Single Post)  
Old 23rd January 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Each xterm -- and each shell -- has its own environment. While there might be some third party software solution, it may be significantly easier to merely set the value when you need it. For example, you might use "lynx" when you don't need a proxy, and create a simple shell script, or shell function (depending on your preferred shell) that sets your environment variable for the command when you need it. For example, here's a simple script that might be chmod 700 or 755 and reside in a directory in your $PATH, such as in $HOME/bin. You might call this file "lynxproxy" or some other name, then, just use it instead of lynx when you want to use a proxy. You could, of course, do the reverse and unset the variable instead of setting it as shown here. In that case, you might pick a different name, such as "lynxclear". The choices are endless.
Code:
#!/bin/sh
env HTTP_PROXY=http://127.0.0.1:8118/ lynx $*
Warning - I haven't tested this, and may have made an error when I typed.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Registration is impossible in Lynx backrow Feedback and Suggestions 2 4th July 2009 07:53 PM
lynx vs links gosha OpenBSD Packages and Ports 1 30th September 2008 10:49 AM


All times are GMT. The time now is 02:19 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick