07-20-2004
Quote:
Originally posted by norsk hedensk
K D E S u p r e m a c y
haha
What's your kicker replacement? Some sort of (super)karamba theme?
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I don't mean the client.... I mean the server - I have the client to connect to a windows citrix server already.
The next best thing I can use at present is VNC (I only want remote desktop, not application sharing specifically). The thing with VNC is that when you go on you are... (3 Replies)
Discussion started by: d11wtq
3 Replies
2. Solaris
Hi,
i have a pentium-4 desktop with intel Motherboard and processor, which version of solaris i can install ,
Please refer.
Thanks
Vijayq8.:b: (6 Replies)
Discussion started by: vijayq8
6 Replies
3. What is on Your Mind?
hey there, new to the forums here.
long story short, i have interests in both HAM radio and *nix OS's and want to start a project that will combine the two. so, the question is:
are there any *nix flavors or other distros that were specifically designed for radio/airwave communications, or... (0 Replies)
Discussion started by: BartlettMagic
0 Replies
4. UNIX for Advanced & Expert Users
Which is the most secure *nix for home business/ office use? Would have to be fairly well up to date browser and drivers wise.
Myself I seem to have settled on RedHat - I've trialled the Desktop, and am part-way through a server trial. I've essentially not managed to keep the browser as secure... (2 Replies)
Discussion started by: GSO
2 Replies
5. Hardware
Hi all,
I want to buy a desktop/workstation, load Red Hat 6 and create some virtual machines to work with. Does anyone currently have systems at home that you have virtual machines on? Remember, I am not talking about server class systems, but just the ordinary desktops. I see a lot of 64-bit... (1 Reply)
Discussion started by: geelsu
1 Replies
6. What is on Your Mind?
Hello All,
Just want to share some funny *NIX commands :).
$ make love
make: *** No rule to make target `love'. Stop.
On a FreeBSD make:
$ make love
Not war.
$ \(-
bash: (-: command not found
$ man woman
No manual entry for woman
$ touch /me
touch: cannot touch `/me':... (5 Replies)
Discussion started by: RavinderSingh13
5 Replies
7. What is on Your Mind?
Hello All,
This Poll/thread is for views of all forum user regarding following point:
There are many people in this forum who are actually not actually working on *NIX(admin or real scripting/automation part) but they are/have learnt scripting and trying to help/guide/advice/sharing... (11 Replies)
Discussion started by: RavinderSingh13
11 Replies
LEARN ABOUT CENTOS
shell-quote
SHELL-QUOTE(1) User Contributed Perl Documentation SHELL-QUOTE(1)
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.16.3 2010-06-11 SHELL-QUOTE(1)