08-21-2009
Quote:
Originally Posted by
DukeNuke2
isn't ubuntu a linux distribution? which was already mentioned as ANY distribution in my last post...
Must have miss understood you.
8 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hey !
I am running EWS-UX/V (Rel 4.2) on NEC EWS/4800/330 station and I am having problems rebooting my station : I am getting the following message on display : BOOT : PANIC : File size out of range.
According to user guide, this error is occuring when a file exceeding the limit and/or... (2 Replies)
Discussion started by: fredo
2 Replies
2. UNIX for Advanced & Expert Users
I have more than 50 server unix's password need to change, usually I assign one password for all hosts, for easy remember, but I need to change password every two months..it's very tried to change password every 2 months, is there any unix script that can change password easily?
ie ' script... (4 Replies)
Discussion started by: zp523444
4 Replies
3. Solaris
I was wondering if there was a way to boot from openboot from the dvd drive. I was thinking about imaging the dvd to a blank drive and going about it that way. I just need to do a flash install. (5 Replies)
Discussion started by: adelsin
5 Replies
4. Solaris
Hi,
I just got a new Ultra 5 and replaced the CD-ROM with an LG DVD-ROM (approved and listed in Sun HCL). Got the DVD-ROM installed to install Solaris 10. Im just learning and new to Solaris installation.
When I insert a Solaris 10 DVD I see that it gets mounted and File Manager opens and... (8 Replies)
Discussion started by: greypilgrim
8 Replies
5. Solaris
Hi,
I have a .ISO file of Solaris system burned into a DVD+ROM, and I encounter the following problems,
I am using Sun V440 server,
(1) Not able to detect the DVD contents under /cdrom.
(2) After reboot with this bootable DVD, I get the following errors,
... (1 Reply)
Discussion started by: Paris Heng
1 Replies
6. Solaris
Hi all-
I am trying to boot from a Solaris 10 DVD which I burned from the ISO I d/l from Sun(Oracle). I checked the byte counts of the image on Sun's website and my system and they are the same.
I and using cdrecord from Schilly and burning the DVD like so:
cdrecord -v dev=0,0,0 -dao... (0 Replies)
Discussion started by: bluescreen
0 Replies
7. Red Hat
Hi, I'm using fedora for 5 years. recently i decided to install new version (16). after i reboot the computer and want to boot from dvd nothing happen's and system boot's from hard disk (i have setup the bios to directly boot from dvd-rom and my dvd-rom is ok). i have downloaded (again) fc16 dvd... (3 Replies)
Discussion started by: ba$h
3 Replies
8. Solaris
Is it possible to boot an existing Solaris 10 update 1 from boot dvd that I run on p3(1 ghz -512 mb ram).
I have got a dual boot sys - the other os is win xp that I need to reinstall but that removes the mbr so, is there any way to recover mbr after the installation of xp?
Thanks. (3 Replies)
Discussion started by: vectrum
3 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)