05-29-2008
Command to set ports
Hi to everyone here,
I have wrote a script to install and set up parental controls with dansguardian and tinyproxy,(fedora) it works quite well except that i have to manually set http proxy to 127.0.0.1 and port 8080 in firefox, is there a way to do this by command line/script?
Id appeciate any help you can give me please and thankyou in advance
![Smilie Smilie](https://www.unix.com/images/smilies/smile.gif)
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is there a command that will show me all ports being used?
I thought maybe the "lsof" command would show me, but I'm not seeing anything.
Thanks,
Jeff (2 Replies)
Discussion started by: lawadm1
2 Replies
2. Shell Programming and Scripting
Hi,
I am new to unix and trying to learn shell scripting. I am using Redhat linux instead of unix and using Bash shell.
I typed some code which consist of "set" command. I got the code from a book.
The code is,
set 'who am i'
echo $name
Actually the... (3 Replies)
Discussion started by: saravanakumar
3 Replies
3. UNIX for Dummies Questions & Answers
I have heard the following command and seen people using it at shell but I don't know what it is for and when it is used. I will appreciate any comment regarding the use of this command.
set -o vi (2 Replies)
Discussion started by: agasamapetilon
2 Replies
4. UNIX for Dummies Questions & Answers
I am having some issues with what should be a simple script.
Using C shell, I am trying to do this -
set x = "{test value}"
(the { and } are an important part of the data).
When I try to reference $x, for example -
echo $x
I get this result -
Missing }.
I have tried... (1 Reply)
Discussion started by: keithg
1 Replies
5. Shell Programming and Scripting
Hi,
I have following scenario..
set -e
eval Command 1
eval Command 2
eval Command 3
gmake realclean
but now the problem is I want to print an error message, advising user to run gmake realclean after resolving errors if any of the Command1/2/3 failed. I know I can use trap to do... (0 Replies)
Discussion started by: Shribigb
0 Replies
6. HP-UX
Hi,
I am using hp unix
i want to know the use of the following commands
set --
set - variable
thanks (4 Replies)
Discussion started by: gomathi
4 Replies
7. UNIX for Dummies Questions & Answers
I'm reading about debugging aids in bash and have come across the set command. It says in my little book that an addition to typing
set
you can also use them "on the command line when running a script..." and it lists this in a small table:
set -o option Command Line... (5 Replies)
Discussion started by: Straitsfan
5 Replies
8. UNIX for Dummies Questions & Answers
What are the commands to manage ports from my command line.
Example:
Opening Ports, Closing Ports, Viewing their status, etc.
I am having a hard time finding this answer. I'm trying to trouble shoot some networking problems and it would be very helpful if I could just do this from the... (1 Reply)
Discussion started by: syregnar86
1 Replies
9. UNIX for Dummies Questions & Answers
Hi Guys,
I like to output every command executed in the script to a file.
I have tried set -x which does the same.
But it is not giving the logs of the child script which is being called from my script.
Is there any parameters in the Set command or someother way where i can see the log... (2 Replies)
Discussion started by: mac4rfree
2 Replies
10. UNIX for Dummies Questions & Answers
Hi Friends,
There is an command that,
SET -x
I am confused with the SET command , i have gone through man page but still.
could anyone advise the same and necessity of the SET command ?
Regards,
Nantha. (2 Replies)
Discussion started by: Nandy
2 Replies
LEARN ABOUT DEBIAN
tinyproxy
TINYPROXY(8) Tinyproxy manual TINYPROXY(8)
NAME
tinyproxy - A light-weight HTTP proxy daemon
SYNOPSIS
tinyproxy [-vldch]
DESCRIPTION
tinyproxy is a light-weight HTTP proxy daemon designed to consume a minimum amount of system resources. It listens on a given TCP port and
handles HTTP proxy requests. Designed from the ground up to be fast and yet small, it is an ideal solution for use cases such as embedded
deployments where a full featured HTTP proxy is required, but the system resources for a larger proxy are unavailable.
OPTIONS
tinyproxy accepts the following options:
-c <config-file>
Use an alternate configuration file.
-d
Don't daemonize and stay in the foreground. Useful for debugging purposes.
-h
Display a short help screen of command line arguments and exit.
-l
Display the licensing agreement.
-v
Display version information and exit.
SIGNALS
In addition to command-line options, there are also several signals that can be sent to tinyproxy while it is running to generate debugging
information and to force certain events.
SIGHUP
Force Tinyproxy to do a garbage collection on the current connections linked list. This is usually done automatically after a certain
number of connections have been handled.
TEMPLATE FILES
There are two occasions when Tinyproxy delivers HTML pages to the client on it's own right:
1. When an error occurred, a corresponding error page is returned.
2. When a request for the stathost is made, a page summarizing the connection statistics is returned. (See STATHOST below.)
The layout of both error pages and the statistics page can be controlled via configurable HTML template files that are plain HTML files
that additionally understand a few template variables.
TEMPLATE VARIABLES
There are several standard HTML variables that are available in every template file:
request
The full HTTP request line.
cause
The abbreviated cause of the error condition.
clientip
The IP address of the client making the request.
clienthost
The hostname of the client making the request.
version
The version of Tinyproxy.
package
The package name. Presently, resolves to tinyproxy.
date
The current date/time in HTTP format.
In addition, almost all templates support:
detail
A detailed, plain English explanation of the error and possible causes.
When Tinyproxy finds a variable name enclosed in braces, e.g. "{request}", then this is replaced by the value of the corresponding variable
before delivery of the page.
STATHOST
Tinyproxy returns a HTML page with connection statistics when it receives a HTTP request for a certain host -- the stathost. The stathost
name defaults to tinyproxy.stats and can be changed at runtime to any name or IP address with the configuration variable StatHost.
The stat file template can be changed at runtime through the configuration variable StatFile.
FILES
/etc/tinyproxy/tinyproxy.conf, /var/run/tinyproxy/tinyproxy.pid, /var/log/tinyproxy/tinyproxy.log
BUGS
To report bugs in Tinyproxy, please visit <https://www.banu.com/tinyproxy/>.
SEE ALSO
tinyproxy.conf(5)
AUTHOR
Written by the Tinyproxy project team.
COPYRIGHT
Copyright (c) 1998-2000 Steven Young; Copyright (c) 2000-2001 Robert James Kaes; Copyright (c) 2009-2010 Mukund Sivaraman; Copyright (c)
2009-2010 Michael Adam.
This program is distributed under the terms of the GNU General Public License version 2 or above. See the COPYING file for additional
information.
Version 1.8.3 09/30/2012 TINYPROXY(8)