05-13-2008
Quote:
Originally Posted by
syndex
1. How do I mount the existing opensolaris partition from the opensolaris live CD
Try first "zpool import" and if a pool shows up, run "zpool import <pool-name>".
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello
I recently purchased solaris 8 and I want to dual boot with
windows 2000.
What is the easiest way to install the solaris OS with the
existing windows 2000?
mogfog (4 Replies)
Discussion started by: mogfog
4 Replies
2. UNIX for Dummies Questions & Answers
I want to dual-boot Windows 98 and Redhat 7. My scheme for doing this is to partition into:
A FAT32 partition for windows
A Linux partition for root
A swap partition
A boot partition
My question is: At what point do I setup windows on the FAT partition? Would I do it from the command line... (5 Replies)
Discussion started by: Furtoes00
5 Replies
3. UNIX for Dummies Questions & Answers
I know this is a common question, but.... I am working on 2 seperate computers. Each machine has one hdd. I want to Install Redhat with Win2k on one machine, and Redhat with Xp on the other. I know there are some issues with the install sequence to get Grub to work with both, but I am a little... (4 Replies)
Discussion started by: jeremiebarber
4 Replies
4. UNIX for Advanced & Expert Users
I am trying to implement a dual boot on my laptop ... using a small xp partition and fedora core 269.1-fc2 i686 linux kernel.. so far I have had to log off and reboot to enter the other partition... but this is getting frustrating.. windows is on /dev/hda1 and 1-5 is on the linux partition. I have... (8 Replies)
Discussion started by: moxxx68
8 Replies
5. UNIX for Dummies Questions & Answers
I am planning to install UNIX (SunOS) on my computer which has two hard disks C: and D:
C drive already have operating system which has windows installed on it and I use it on daily basis.
D drive is empty and has like 40GB space, I want to partition D: by half half and want install UNIX on... (1 Reply)
Discussion started by: DataSheet
1 Replies
6. UNIX for Dummies Questions & Answers
Hello!
I must find a way to use unix in my PC. I have a Dell Intel Pentium 4 CPU 3.2GHz, 1Gb RAM.It came with windows xp but in order to get some software running I have to be able to work on unix! Is it posible to set up a unix and Windows dual boot configuration? I was sure it was posible but... (2 Replies)
Discussion started by: isidora10
2 Replies
7. Solaris
Hi,
I am doing a build for dual boot server with Solaris 10 and Win2K3 server. I have the solaris 10 installed already and have to the windows 2003 installation now.
Just wanted to know its just running a new 2003 build or anything different. (12 Replies)
Discussion started by: gunnervarma
12 Replies
8. Solaris
Hi,
I have a dual boot server with Windows on C0t0d0 and Solaris 10 on C1t0d0. When I do a reboot it automatically boots with Windows as default without an option to boot onto Solaris. I want to set Solaris as my default boot.
any ideas?
Thanks,
Suresh (6 Replies)
Discussion started by: gunnervarma
6 Replies
9. Ubuntu
Faced with a "learn the new platform at your own expense or lose your job" ultimatum, I bought a Maxtor internal HD and added it to my older HP desktop which had been upgraded from Windows to Windows Professional. I installed Fedora on the new 500 GB HD and tried putting the Fedora boot partition... (5 Replies)
Discussion started by: dba18
5 Replies
10. UNIX for Dummies Questions & Answers
tell me in steps if its virtual box (2 Replies)
Discussion started by: mahor1989
2 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)