04-04-2009
Quote:
You're right. I was thinking of /dev/dsk/c0t0d0s0 as being a CD, not a HDD.
Then I guess there was no reason to warn against writing a file to it given the fact it's a read-only filesystem ;-)
9 More Discussions You Might Find Interesting
1. Tips and Tutorials
Many software packages can be downloaded in the form of an ISO image. ISO images can also be created from CD and saved as ISO images:
$ cat /dev/somecd > somename.iso
Rather than burning the image to a CD-ROM to access its contents, it is easy to mount the image directly into the filesystem... (0 Replies)
Discussion started by: kduffin
0 Replies
2. UNIX for Advanced & Expert Users
I would like to mount an iso CD image on my Suse linux (SLES 9), the image has been copied to my suse linux machine.
am able to mount the iso image manually by mount -oloop /iso/SLES-9-i386-CD1.iso /free
but I would like to put the above entry in /etc/fstab so that when the machine is rebooted,... (2 Replies)
Discussion started by: hassan1
2 Replies
3. UNIX for Advanced & Expert Users
Hi, (HP-UX 11.11)
I need to create a tape image of an igniteUX image created on our igniteUX server.
That is to say. I have a "Online" image of the igniteUX of the targeted system but I now need to copy it to a useable TAPE (igniteUX) image so i can build an other server from it that is not... (3 Replies)
Discussion started by: Andrek
3 Replies
4. Ubuntu
I want to install Ubuntu 7.10 and I have ISO image ubuntu-7.10-desktop-i386.iso .
How can I convert to a bootable CD on linux or on windows.
Thanks,
J. (5 Replies)
Discussion started by: superuser84
5 Replies
5. AIX
Hi all,
Can anyone get the link to download the iso image of AIX as i am new to AIX need to study and work on the concepts of AIX.
Thnx in advance...
VINU:) (3 Replies)
Discussion started by: vinuvinod
3 Replies
6. Solaris
Hi All,
Can anyone give me the lnik to download the iso image file Solaris 10 .
I need to install it on my local machine .
Pls help me out.
VINU (5 Replies)
Discussion started by: vinuvinod
5 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I'm trying to create a customized debian installer on a USB key.
I found a tutorial on how to create the usb key.
After the USB key is prepared, all you have to do is to copy the iso file to the stick.
So what I need to do now is to be able to modify the content of the iso file before... (7 Replies)
Discussion started by: chebarbudo
7 Replies
8. Red Hat
Hello Everyone,
Can anyone let me know how to make minimal boot.iso from rhl6 installation dvd iso image. I have a dvd image with me but i want to make just a minimal boot media. Somehow it is not shipped with dvd iso. I know we can download boot.iso from redhat site but is there any anyway we... (5 Replies)
Discussion started by: Rohit Bhanot
5 Replies
9. Solaris
Hi Solaris 10 Experts,
How can I create an ISO Image of a CD/DVD from the cdrom to a temporary directory, and then use that image to burn it on a blank DVD in the cdrom in Solaris 10 1/13 OS environment?
Please provide me with an example.
With best regards,
SS (1 Reply)
Discussion started by: ssabet
1 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)