chiark / gitweb /
It seems that cdrecord needs to be run as root (and hence setpriority()
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Wed, 29 Dec 2004 14:34:22 +0000 (14:34 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Wed, 29 Dec 2004 14:34:22 +0000 (14:34 +0000)
etc.) to be reliable.

burn-cd

diff --git a/burn-cd b/burn-cd
index 462cc6d..80c19fd 100755 (executable)
--- a/burn-cd
+++ b/burn-cd
@@ -1,4 +1,4 @@
 #! /bin/sh
 set -e
-cdrecord -v -tao dev=/dev/cdrom gracetime=2 blank=fast
-cdrecord -v -tao dev=/dev/cdrom gracetime=2 "$1"
+sudo cdrecord -v -tao dev=/dev/cdrom gracetime=2 blank=fast
+sudo cdrecord -v -tao dev=/dev/cdrom gracetime=2 "$1"