![]()
Linux, Unix, /etc/$ To set up this Linux system, do I really have to type long,
cryptic, frequently inconsistent and undocumented commands with
occasional long strings of hex digits?
# Yeah. You got a problem with that?
|
Sponsored links (requires javascript):
#!/bin/ksh
#cd.copy: copy a data CD
#note BURNER and READER set in parent shell based on output from
#cdrecord -scanbus
sudo dd bs=2048 if=/dev/scd1 of=file.iso conv=noerror,sync count=$(sudo isosize -d 2048 /dev/scd1)
if [ $? -eq 0 ]
then
echo copy successful, now burning
sudo cdrecord dev=$BURNER -overburn -tao -eject speed=4 file.iso
sudo cdrecord dev=$READER -eject
echo burning successful
exit 0
else
echo copy failed
exit 1
fi