11-04-2007
Quote:
Originally Posted by
vutty81
there already is a default file in etc though. i dont know if that would be it?
I think you will find that is a directory.
Type "route get default" to see if the router setting has been taken, did you reboot since you set it?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I running HPUX 11.0,
Netscape gives me an error "Unable to locate Server" when using a www.something.com address.
If I use an IP address I get past the router and onto the Internet.
My workstation can get to the Router @ 192.168.0.1 and also it's local APACHE server.
I have DHCP enabled... (8 Replies)
Discussion started by: johnalt
8 Replies
2. Solaris
ive installed a fresh copy of solaris 10 on a E3500 Server machine, i gave it a static IP address , 192.168.1.15 its a test server in our office (small office) we are using LINKSYS as our internet router and DHCP as well .. its IP is 192.168.1.1 and ive added this IP as Default route on the server... (9 Replies)
Discussion started by: mduweik
9 Replies
3. Solaris
Hi,
I am new to Solaris just migrating from Windows XP.
I want to connect to internet but I have problem with configuration.
My ISP has provided me a router.I get internet connection through DHCP.
I don't know any proxy or subnetmask or any IP address that requires during configuration of... (1 Reply)
Discussion started by: pappu2008
1 Replies
4. Solaris
Hi I installed solaris developer edition 1/08 today.I want to connect to Broadband internet through my ADSL 2+ Modem/Router with a username and password.
plz help in this case,I am new to sun solaris:confused:
the modem itself is a router it worked well on ubuntu and red hat (3 Replies)
Discussion started by: santugvd
3 Replies
5. Linux
HI,
Am using GPRS ( MOB # 3230 ) internet connection in windows
Hw to use internet r connect in linux.. ( Red Hat Linux Ver.10 )
Please help me..
Thanks in adv.. (1 Reply)
Discussion started by: bharath raja
1 Replies
6. UNIX for Dummies Questions & Answers
I recently installed solaris 10 on a seperate hard disk in my desktop pc. My first hard disk is running windows xp.
I am totally new to solaris. Please help me to connect to the internet through solaris 10. I read a few threads, and re-installed solaris 10 by giving 'Yes' to the question that... (1 Reply)
Discussion started by: hari86av
1 Replies
7. Solaris
Dear freinds...
I downloaded solaris for x86 and was able to configure the lan correctly.. I can ping and share with other destops through lan... but still I can't connect to internet ? can you please help..
I put my default gateway which is 192.168.1.1 to /etc/defaultrouter but with no use..... (13 Replies)
Discussion started by: yahyaaa
13 Replies
8. Linux
Hi,
Can someone guide me regarding how to connect to internet.
what are steps?
Thanks in advance (2 Replies)
Discussion started by: naren nandale
2 Replies
9. Red Hat
What all is required so that I can use internet on my Linux OS
My OS: Red Hat Fedora
version: 2.6
I have to connect via my Nokia cell phone via cable.
This way only I had been using internet on my Windows OS.
If any software is required to install on my UNIX for internet, then I don't... (1 Reply)
Discussion started by: ravisingh
1 Replies
10. IP Networking
How to enable internet on my Linux OS
My OS: Red Hat Fedora
Release 9 (Sulphur)
version: 2.6
I have to connect via my Nokia cell phone via cable.
This way only I had been using internet on my Windows OS.
If any software is required to install on my UNIX for internet, then I don't have any. If... (14 Replies)
Discussion started by: ravisingh
14 Replies
LEARN ABOUT DEBIAN
shell-quote
SHELL-QUOTE(1p) User Contributed Perl Documentation SHELL-QUOTE(1p)
NAME
shell-quote - quote arguments for safe use, unmodified in a shell command
SYNOPSIS
shell-quote [switch]... arg...
DESCRIPTION
shell-quote lets you pass arbitrary strings through the shell so that they won't be changed by the shell. This lets you process commands
or files with embedded white space or shell globbing characters safely. Here are a few examples.
EXAMPLES
ssh preserving args
When running a remote command with ssh, ssh doesn't preserve the separate arguments it receives. It just joins them with spaces and
passes them to "$SHELL -c". This doesn't work as intended:
ssh host touch 'hi there' # fails
It creates 2 files, hi and there. Instead, do this:
cmd=`shell-quote touch 'hi there'`
ssh host "$cmd"
This gives you just 1 file, hi there.
process find output
It's not ordinarily possible to process an arbitrary list of files output by find with a shell script. Anything you put in $IFS to
split up the output could legitimately be in a file's name. Here's how you can do it using shell-quote:
eval set -- `find -type f -print0 | xargs -0 shell-quote --`
debug shell scripts
shell-quote is better than echo for debugging shell scripts.
debug() {
[ -z "$debug" ] || shell-quote "debug:" "$@"
}
With echo you can't tell the difference between "debug 'foo bar'" and "debug foo bar", but with shell-quote you can.
save a command for later
shell-quote can be used to build up a shell command to run later. Say you want the user to be able to give you switches for a command
you're going to run. If you don't want the switches to be re-evaluated by the shell (which is usually a good idea, else there are
things the user can't pass through), you can do something like this:
user_switches=
while [ $# != 0 ]
do
case x$1 in
x--pass-through)
[ $# -gt 1 ] || die "need an argument for $1"
user_switches="$user_switches "`shell-quote -- "$2"`
shift;;
# process other switches
esac
shift
done
# later
eval "shell-quote some-command $user_switches my args"
OPTIONS
--debug
Turn debugging on.
--help
Show the usage message and die.
--version
Show the version number and exit.
AVAILABILITY
The code is licensed under the GNU GPL. Check http://www.argon.org/~roderick/ or CPAN for updated versions.
AUTHOR
Roderick Schertler <roderick@argon.org>
perl v5.8.4 2005-05-03 SHELL-QUOTE(1p)