05-14-2013
Quote:
Originally Posted by
figaro
I do hope for the Raspberry PI to become the breakthrough of Linux in the developing world.
I should mention Android phones for users that like their root access.
10 More Discussions You Might Find Interesting
1. What is on Your Mind?
Hi guys,
My name is Ryan. I'm from Providence, Rhode Island. A friend and I are working on a homemade video game cabinet design in the style of classic arcade games from the late seventies to nineties. We're designing a system that allows people to play these original games on their original... (0 Replies)
Discussion started by: kabungalee
0 Replies
2. What is on Your Mind?
Raspberry Pi
An ARM GNU/Linux box for $25. Take a byte!
FAQs
What's a Raspberry Pi?
The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It's a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets,... (5 Replies)
Discussion started by: Neo
5 Replies
3. What is on Your Mind?
Anyone order or get the new Rasberry Pi? I'm still waiting. Even though it's a fun project, I think these will turn out to be toys for people who already have PC's, and a boon to those who do not.
But that is not stopping me. If my wallet holds out, maybe I can build a Raspberry Pi beowulf... (1 Reply)
Discussion started by: jim mcnamara
1 Replies
4. AIX
Anybody done it? We use a legacy application that requires 3151 emulation. I am experimenting with a raspberry Pi running Debian. Wondering if nothing else, somebody might know where I can get some source code for a basic emulator? (1 Reply)
Discussion started by: jeveretts
1 Replies
5. Debian
Raspberry Pi B 2014-01-07 Raspbian fully up to date.
Installed and configured motion for surveillance.
It works just fine and creates .avi files and .jpeg.
Installed Mplayer trying to run it from desktop was
not successful. I did try to do a command line by
executing sudo mplayer... (6 Replies)
Discussion started by: oldcity
6 Replies
6. News, Links, Events and Announcements
Not sure if this is the right forum...
But a mini Raspberry PI, Raspberry PI Zero, free with MagPI magazine...
Shrinking to Zero: The Raspberry Pi gets smaller - BBC News
Fantastic for a simple Raspbian Debian based project... (0 Replies)
Discussion started by: wisecracker
0 Replies
7. News, Links, Events and Announcements
Hi all...
An interesting idea for Raspberry Pi...
Raspberry Pi goes Hi-Fi with audio valve amp | Electronics Weekly
Enjoy... (1 Reply)
Discussion started by: wisecracker
1 Replies
8. UNIX for Beginners Questions & Answers
i have been given a raspberry Pi with some applications i am told run in Unix. I do not know much (close to nothing about Unix) that's why I'm here.
I need someone to remote view (team viewer) into my machine and try and show me how to get this application running.
If there is success there... (1 Reply)
Discussion started by: supaflygy
1 Replies
9. Shell Programming and Scripting
Hi,
I'm trying to get the configuration just as I'd like. But I can't get it to work?
I try to read if: xset s off xset -dpms xset s noblank
Is already in the .xinitrc file.... but it doesn't seem to work. I need it to check if it is already in the file otherwise it should echo that it's... (2 Replies)
Discussion started by: melbarius
2 Replies
10. Emergency UNIX and Linux Support
This is a test to see if the Emergency and UNIX and Linux Support forum is still working...
I see that Amazon has a deal on Raspberry Pis today (CanaKit Raspberry Pi 3 B+ (B Plus) Starter Kit (32 GB EVO+ Edition, Premium Black Case) and CanaKit Raspberry Pi 3 Complete Starter Kit - 32 GB... (4 Replies)
Discussion started by: Don Cragun
4 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)