08-11-2006
Quote:
Originally Posted by phatpenguin
In order to run this command each time the server boots, I always add it to the /etc/rc2.d/S99route.
Thanks @ phatpenguin
thats what i was looking for to run each time when the server boots... anyway thanks.
Regards,
Syed Alam
9 More Discussions You Might Find Interesting
1. IP Networking
I use DHCP on my AIX box at home . I want to connect to my Cable ISP as a
DHCP Client . the thing I did was this :
smit
Communications Applications and Services
TCP/IP
Use DHCP for TCPIP Configuration and Startup
"Select the interface you want to use"
en0
"Enter a hostname"
OK
after... (3 Replies)
Discussion started by: zumbi
3 Replies
2. Red Hat
I would like to know how to configure a Redhat 9.0 as NIS+ client. I have seen the post of larry, but it is not enough information for me to do the configuration. Could anyone tell me how to do it? Please help!
Thank you! (3 Replies)
Discussion started by: alexhon
3 Replies
3. Red Hat
Hi
I have installed Red hat linux 4 Enterprise edition
But im not able to find the option where i can configure my broad band internet connectivity? Im using a ADSL connection
Please help me (1 Reply)
Discussion started by: balumankala
1 Replies
4. Solaris
i have a router from my isp provider 02. my internet works fine in windows but i am unable to use internet in solaris. when i tried ifconfig command
i was able to see the lo0 which is my laoopback adapter. pls can someone advice. (7 Replies)
Discussion started by: seyiisq
7 Replies
5. AIX
:b:Hi...
I need help to configure nim client on nim server..
can i define aix 5.3.4.0 on aix 5.3.7.0 nim server.. while i m configuring nim client on nim server its getting msg that images not same.. i need to confirm that both version should be same or not..
Thanks.. (5 Replies)
Discussion started by: sumathi.k
5 Replies
6. Emergency UNIX and Linux Support
I am writing a shell script which needs to connect to a remote internet ftp site over sftp. The problem is that the Red Hat Linux system on which the script will be executed resides behind a web/internet proxy. How can the standard sftp client which is bundled with Red Hat Linux distributions be... (2 Replies)
Discussion started by: toobrown1
2 Replies
7. Solaris
Hi, I am trying to configure NTP client on my Solaris server, but I am getting error like:
Jan 13 10:53:33 SPOTS ntpdate: no server suitable for synchronization foundMy ntp.conf file:
bash-3.00# pwd
/etc/inet
bash-3.00#
bash-3.00#
bash-3.00# cat ntp.conf
# ident "@(#)ntp.client... (5 Replies)
Discussion started by: nypreH
5 Replies
8. Solaris
Hello,
I have a solaris 10 U 8 and want it to authenticate any user against a remote RADIUS server and return it's appropriate privileges on the system
First is it possible? and if yes, How I can do it?
please a consider I'm a little "newbie" on Solaris world
Thanks in advance! (0 Replies)
Discussion started by: basim
0 Replies
9. Proxy Server
Hi guys. First, sorry for my english, I´m tried to write the best form but sure I´m not do it.
I´m tried to configure the native ldap client on Solaris 10 but yet dosen't work. May be the problem is in the pam.conf or something like that.
This is the line I was applied to configure the... (7 Replies)
Discussion started by: sultano
7 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)