01-19-2010
Quote:
Originally Posted by
Corona688
First off let me adjust your expectations a little.
You need to keep in mind
Linux Is Not Windows:
As for better modern languages, I challenge them to find a modern language that's not
written in C.
---------------------------------------------------------------------------
yeah that's why i said.. i need a change.
but i do really appreciate, its a very comprehensive answer for me..
All hats for you..
i like the challege part though
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
:confused: Hey, I can't seem to find out where to to get LINUX or X-WINDOWS. Any help would be much appreciated!
Thnx! (1 Reply)
Discussion started by: Kirkey
1 Replies
2. Linux
Hello,
In our computer lab we are windows networking.We have installed windows 2000 server on our IBM server and created a domain. All the computers are installed with windows 2000 porfessional and are a part of the domain. i have a installed Red Hat linux 9.0 on one system. I want this Linux... (1 Reply)
Discussion started by: vibhory2j
1 Replies
3. Linux
Hey all.
I want to connect my Linux box on the work network (I'm on-site support, so I'm allowed to :) ). I can login as root (or any other user) and get my IP which I want, browse the web as I've set the box up for that.
But what I want to do now is authenticate myself on the network so I... (3 Replies)
Discussion started by: woofie
3 Replies
4. UNIX for Dummies Questions & Answers
hi
i wanted to know how to read the status of RTS/CTS line using ioctl calls....i am programming using c/c++ and linux
if someone can post a code snippet or suggest a book for the same...it will be very helpful....
2. also i will like to know can a windows application and a rtos application... (1 Reply)
Discussion started by: nivea_jmd
1 Replies
5. Windows & DOS: Issues & Discussions
Hello all
i need to install linux flavor ubunto or sentOs not GUI is needed the only
problem is that in my home computer im using win2k ( don't ask my wife don't want to hear about Linux )
so i guess i stuck with installing some kind of virtual pc and install on top of it the Linux
what do you... (11 Replies)
Discussion started by: umen
11 Replies
6. Linux
What are the differences, advantages, and disadvantages? (1 Reply)
Discussion started by: Advice Pro
1 Replies
7. UNIX for Dummies Questions & Answers
I *think* what I want to do is not only possible but easy, but as a "dummy" :) I can't figure it out. Here's what I have:
Linux (Ubuntu 10.04) laptop that is not in my house, but has an Internet connection.
Linux (Ubuntu 9.04) computer in my house that has unfettered access to the... (6 Replies)
Discussion started by: WesleyC
6 Replies
8. What is on Your Mind?
Any comments on this Windows 8 OEM specs may block Linux booting | ITworld (16 Replies)
Discussion started by: jgt
16 Replies
9. UNIX for Beginners Questions & Answers
Hi, totally new to linux base using windows when started learning and using computers.
but i remember that one pc was there , look alike windows desktop, but could not do the task as windows just click and open and view edit etc. But, you could do a little differently even saving in and opening... (8 Replies)
Discussion started by: jraju
8 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)