changeset 2:1e962e354810

try to get cd opening and close functions, but they don't work yet...
author Robert McIntyre <rlm@mit.edu>
date Tue, 18 Oct 2011 21:38:45 -0700
parents bc9176d863ba
children d33008839340
files cd-backup cd-burn cd-close cd-open readme.txt
diffstat 4 files changed, 15 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
     1.1 --- a/cd-backup	Tue Oct 18 21:17:33 2011 -0700
     1.2 +++ b/cd-backup	Tue Oct 18 21:38:45 2011 -0700
     1.3 @@ -1,1 +1,6 @@
     1.4 -mkisofs -iso-level 4 -o /tmp/cd.iso "$@"
     1.5 \ No newline at end of file
     1.6 +TARGET="/home/r/proj/scratch/cd.iso"
     1.7 +
     1.8 +mkisofs -iso-level 4 -o $TARGET "$@"
     1.9 +
    1.10 +echo "files copied to $TARGET. use 'cd-burn' to burn it."
    1.11 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/cd-burn	Tue Oct 18 21:38:45 2011 -0700
     2.3 @@ -0,0 +1,7 @@
     2.4 +TARGET=/home/r/proj/scratch/cd.iso
     2.5 +
     2.6 +
     2.7 +cdrecord -multi -v -eject gracetime=3
     2.8 +
     2.9 +
    2.10 +ls "$TARGET" | xargs -p rm
    2.11 \ No newline at end of file
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/cd-close	Tue Oct 18 21:38:45 2011 -0700
     3.3 @@ -0,0 +1,1 @@
     3.4 +cdrecord -load
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/cd-open	Tue Oct 18 21:38:45 2011 -0700
     4.3 @@ -0,0 +1,1 @@
     4.4 +cdrecord -eject 2>&1 > /dev/null