[Gllug] Bash Scripting
Stan
stan at plato.wadham.ox.ac.uk
Fri May 24 13:47:38 UTC 2002
To burn a dvd (my writer will only work with -dao) I have been making
an iso image. I've discovered I can also do the following
# mkisofs -J -r -quiet -print-size File\ With\ A\ Space Another\ File
462000
# mkisofs -J -r File\ With\ A\ Space Another\ File | cdrecord -dao -tsize=462000s -
How can I script this?
cdwrite.sh
#!/bin/sh
blocks=$(mkisofs -J -r -quiet -print-size $@)
mkisofs -J -r $@ | cdrecord -dao -tsize=$cdblockss -
./cdwrite.sh File\ With\ A\ Space Another\ File
Complains that File doesn't exist...can't seem to get the quoting to
work. I've tried '$@' and "$@"
It's bound to be simple but I'm foxed.
Stan
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list