06-16-2011
Quote:
Originally Posted by
pludi
From the
Jargon File:
Quote:
A person who enjoys exploring the details of programmable systems and how to stretch their capabilities, as opposed to most users.
I much prefer that definition. That is much more descriptive of what it is to be a "hacker".
Also current affairs don't fill me with much hope for the word "hacker" ever being seen as something positive by the media etc.
10 More Discussions You Might Find Interesting
1. IP Networking
hi there,
i read in Amazon.com that there is this TCP/IP black book which is supposed to give a in-depth knowledge of TCP/IP. Is it the one from Microsoft ???
was wondering how the expereinced ones feel about this book ?
any recommadntions on good,in--depth TCP/IP books ?
thanks (3 Replies)
Discussion started by: happyfish
3 Replies
2. Solaris
This is my site and i hope it is useful for unix beginner
http://www.learning-solaris.com (0 Replies)
Discussion started by: hoanginlove81
0 Replies
3. What is on Your Mind?
What's on Your Mind? Come inside and relax a while.
The highlighted portion is not applicable for this post, we will forget about that a little bit.
CERN's experiment - on big bang
Start of historic LHC collider experiment nears - Science
Countdown to LHC 'Big Bang' experiment begins -... (0 Replies)
Discussion started by: matrixmadhan
0 Replies
4. Shell Programming and Scripting
I was thinking if there is a way that i can go about making my screen go black automatically for about 10seconds, (with a message like "take a break" printed on the screen) and after 10seconds everything comes back to normal....
is there any way that i can do this...???
to further clarify the... (2 Replies)
Discussion started by: c_d
2 Replies
5. Red Hat
Anybody knows about any reliable source where i can study Linux servers while sitting at my home. A single bit of information in this regards will be highly appreciated. thanks :-) (3 Replies)
Discussion started by: salman103
3 Replies
6. Solaris
Hi all,
If you are interested on taking Sun microsystems training from Java to business skills , if so drop by SAI program it's free for students and Educational Institutions (0 Replies)
Discussion started by: h@foorsa.biz
0 Replies
7. Red Hat
I am using Intel HD 400 Graphics on a laptop.
When I logout, I get a black screen with no cursor or anything. I have to hard reboot the system to get into linux again.
Working on RHEL 6 (gnome) (1 Reply)
Discussion started by: sunveer
1 Replies
8. Shell Programming and Scripting
Hi,
I have the next problem, i am triying to concatenate two variables with white spaces at the cornes, but the shell deletes them.
For example i have the next code:
A="Hello "
B="Hello"
echo $A$B
output: Hello Hello
You can see only one space between the words, and i put 5... (5 Replies)
Discussion started by: Xedrox
5 Replies
9. UNIX for Dummies Questions & Answers
Have -
HP G4p DL360 SCSI version (*see below of pdf of server basics if needed)
Scientific Linux live-cd.iso
Issue -
When it boots off the LiveCD, all starts swell, but if I install the OS normal it goes to a black monitor....
If I install text only, it works and when done I am at the... (4 Replies)
Discussion started by: sas
4 Replies
10. Shell Programming and Scripting
Hi all,
Is there a way, on the command line, to show a black screen WITHOUT turning off the monitor? Also, is there a way to make the computer show the last screen before the black screen as soon as the user interacts with it?
I know that there are various ways to turn off the computer, or... (8 Replies)
Discussion started by: Zel2008
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)