10-07-2006
Quote:
Originally Posted by shereenmotor
This thread needs moderators attention.
Done, spam has been removed. Thanks for pointing it out.
9 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
Hi everyone i have a question for all of you. It may be basic or it may be a good one. I recently aquired a copy of "SCO TCP/IP runtime System for SCO Unix" (thats what the disks say) and for the life of me i can not get it to load. i have tried opening the disk in linux and it can not determine... (0 Replies)
Discussion started by: Cerberus
0 Replies
2. UNIX Desktop Questions & Answers
Hi All,
I'm a UNIX Newbie, yes, I hate to say it. I'm decent enough though on LINUX box. But of course, it's not the same!
Does anyone know where I can download a copy of the UNIX network operating system, that I can install on one of my boxes?
I'd very much appreciate all suggestions.
... (2 Replies)
Discussion started by: JaredsNew
2 Replies
3. UNIX for Dummies Questions & Answers
I'm very new to Unix-- I want to locate and download it to my computer and start learning it. Could anybody plz help me start.
Thanks a lot.
Rachid (1 Reply)
Discussion started by: Rachid
1 Replies
4. SCO
Dear Friends,
Can anyone tell me from where i can download the SCO-UNIX freely. is SCO-UNIX a freeware or not?.. (1 Reply)
Discussion started by: msvraajaram
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I was reading on the net and something caught my eyes it was something about learning how to become a hacker. This site said that the best thing you can do to start is to use a Unix. My first question is: What is an Unix?
Then I would like to ask you how can I download one on my... (3 Replies)
Discussion started by: chaoticlysmart
3 Replies
6. UNIX for Dummies Questions & Answers
According to this thread: https://www.unix.com/showthread.php?t=1 one guy says However, I cannot find any sco unixware7 iso download link in their download section (http://wdb1.sco.com/clbk_web/owa/dwn_customer), is it really for free, and if that is true, where can I download it?
Thanks, (2 Replies)
Discussion started by: phalcos
2 Replies
7. SCO
can any one tell me from where i can download the SCO unix operating system 7.14 version.
any one has any link ? (0 Replies)
Discussion started by: alamlinux
0 Replies
8. UNIX for Advanced & Expert Users
I checked unix.org but did not find any link where i can download basic unix flavour. any idea from where i can download unix.
thanks in advance.
- nilesh (14 Replies)
Discussion started by: ynilesh
14 Replies
9. SCO
Hi
I have some sco xenix object, bin and archive files that operate in sco unix 5.0.7.
I know that sco unix kernel can support sco xenix binary. I want to know how can I link xenix and unix archives together? (0 Replies)
Discussion started by: javad1_maroofi
0 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)