ISO image maker

First I just thought to add an alias, but then I found myself scripting...

In case anyone finds this useful... Does it work on DSL?

Code Sample

#!/bin/bash

# Bash script for making CD-images out of files and/or directories easily.# Burned images should work with old CD drives as well with new ones# and with many OS:es too.# May not work if you specify multiple files/directories to add... But should.;)

You can also use single quotes so that you don't have to escape certain characters on your output strings.

Any reason for making this a bash-specific script?

Posted by Zucca on Mar. 06 2008,16:55

Quote (^thehatsrule^ @ Mar. 06 2008,11:40)

What about DVDs then?

You can also use single quotes so that you don't have to escape certain characters on your output strings.

Any reason for making this a bash-specific script?

I could add DVD image creating too.Anyway. I designed this script primary for myself. Later I decided to share this.

Bash is common and I don't know much perl or any other language suitable for this. Well... I could do this with php, but then there would be php depency. ;P

Posted by curaga on Mar. 06 2008,17:13

I guess hats meant it has some bash-specific syntax, so it might or might not work with ash, dash, lash, etc. other shells. Though bash is a standard component, so you're likely to find it on any linux system.

Posted by Zucca on Mar. 06 2008,17:43

Well. At least zsh should be able to run bash scripts. Anyway shebang (#!/bin/bash) should make sure that the script is being run with right program.

Here's an updated version. It should be "idiotproof". ;) Also few new features. Check --help section.

Code Sample

#!/bin/bash

# mkiso.sh# Bash script for making CD-images out of files and/or directories easily.# Burned images should work with old CD drives as well with new ones# and with many OS:es too.# _Should_ be idiot proof.# Multiple file/directory support tested and seems to work just fine.