Wie ruft man dieses Script auf?

Kalma

Erfahrenes Mitglied
Hey,

mein Dad hat mir ein Script geschickt mit dem ich MP3 Dateien auf eine CD Brennen kann, als normal im CD-Player abspielbare Datei.
Allerdings weiß ich nicht, wie dieses Script aufzurufen ist. Kann mir das jemand sagen?

Code:
 for var in `ls -1 $1`; do
   echo Burning $var ..........;
   mpg123 -s $var | cdrecord dev=imation -v -nofix -audio -swab -
 done
 cdrecord dev=imation -fix
 
Eigentlich habe ich keine Ahnugn aber vielleicht geht es ja so:

1. Script in eine Datei zB. musikkopierer schreiben.
2. Konsole aufrufen, in Verzeichnis vom Script gehen
3. ./musikkopierer aufrufen.

Ich habe eigentlich wirklich keine Ahnung aber ich hätte es als erstes so selber versucht!^^
 
So hab ich es schon probiert, aber das funktioniert nicht.

Der schickt ne Ellenlange nachricht, aber nix passiert
 
Schade. :(

//Edit
Du musst das Script vorher (bevor du ./musikkopierer ausführst) erst ausführbar machen. Das geschieht mit dme Befehl chmod u+x musikkopierer
 
Zuletzt bearbeitet:
Hallo rummeldibummel / Kalma

Eigentlich habe ich keine Ahnugn aber vielleicht geht es ja so:

1. Script in eine Datei zB. musikkopierer schreiben.
2. Konsole aufrufen, in Verzeichnis vom Script gehen
3. ./musikkopierer aufrufen.

Ich habe eigentlich wirklich keine Ahnung aber ich hätte es als erstes so selber versucht!^^

Ich würde dazu sagen fast richtig. Die Scriptdatei muss vor dem aufrufen noch ausführbar gemacht werden mit dem aufruf chmod u+x musikkopierer
corkoo
 
hehe,

danke, aber es funktioniert dennoch nicht.

Hier mal die Meldung. Sorry, wenn sie zu lang ist, nehm ich sie wieder raus:

Burning Bestwishes ..........
This is wodim, not cdrecord. Don't expect it to behave like cdrecord in any
way, don't refer to it as "cdrecord". Send problem reports to
debburn-devel@lists.alioth.debian.org, don't bother Joerg Schilling with any
problems caused by this application.
Copyright (C) 2006 cdrkit maintainers, (C) 1994-2006 Joerg Schilling

wodim: No write mode specified.
wodim: Asuming -tao mode.
wodim: Future versions of wodim may have different drive dependent defaults.
TOC Type: 0 = CD-DA
scsidev: 'imation'
devname: 'imation'
scsibus: -2 target: -2 lun: -2
wodim: No such file or directory. Cannot open 'imation'. Cannot open SCSI driver.
wodim: For possible targets try 'wodim -scanbus'.
wodim: For possible transport specifiers try 'wodim dev=help'.
wodim:
wodim: For more information, install the cdrkit-doc
wodim: package and read /usr/share/doc/wodim/README.ATAPI.setup .
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 0.65; written and copyright by Michael Hipp and others
free software (LGPL/GPL) without any warranty but with best wishes

Playing MPEG stream 1 of 1: Bestwishes ...

[0:00] Decoding of Bestwishes finished.
Burning Century ..........
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 0.65; written and copyright by Michael Hipp and others
free software (LGPL/GPL) without any warranty but with best wishes
Century: No such file or directory
This is wodim, not cdrecord. Don't expect it to behave like cdrecord in any
way, don't refer to it as "cdrecord". Send problem reports to
debburn-devel@lists.alioth.debian.org, don't bother Joerg Schilling with any
problems caused by this application.
Copyright (C) 2006 cdrkit maintainers, (C) 1994-2006 Joerg Schilling

wodim: No write mode specified.
wodim: Asuming -tao mode.
wodim: Future versions of wodim may have different drive dependent defaults.
TOC Type: 0 = CD-DA
scsidev: 'imation'
devname: 'imation'
scsibus: -2 target: -2 lun: -2
wodim: No such file or directory. Cannot open 'imation'. Cannot open SCSI driver.
wodim: For possible targets try 'wodim -scanbus'.
wodim: For possible transport specifiers try 'wodim dev=help'.
wodim:
wodim: For more information, install the cdrkit-doc
wodim: package and read /usr/share/doc/wodim/README.ATAPI.setup .
Burning Child ..........
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 0.65; written and copyright by Michael Hipp and others
free software (LGPL/GPL) without any warranty but with best wishes
Child: No such file or directory
This is wodim, not cdrecord. Don't expect it to behave like cdrecord in any
way, don't refer to it as "cdrecord". Send problem reports to
debburn-devel@lists.alioth.debian.org, don't bother Joerg Schilling with any
problems caused by this application.
Copyright (C) 2006 cdrkit maintainers, (C) 1994-2006 Joerg Schilling

wodim: No write mode specified.
wodim: Asuming -tao mode.
wodim: Future versions of wodim may have different drive dependent defaults.
TOC Type: 0 = CD-DA
scsidev: 'imation'
devname: 'imation'
scsibus: -2 target: -2 lun: -2
wodim: No such file or directory. Cannot open 'imation'. Cannot open SCSI driver.
wodim: For possible targets try 'wodim -scanbus'.
wodim: For possible transport specifiers try 'wodim dev=help'.
wodim:
wodim: For more information, install the cdrkit-doc
wodim: package and read /usr/share/doc/wodim/README.ATAPI.setup .
Burning End ..........
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 0.65; written and copyright by Michael Hipp and others
free software (LGPL/GPL) without any warranty but with best wishes
End: No such file or directory
This is wodim, not cdrecord. Don't expect it to behave like cdrecord in any
way, don't refer to it as "cdrecord". Send problem reports to
debburn-devel@lists.alioth.debian.org, don't bother Joerg Schilling with any
problems caused by this application.
Copyright (C) 2006 cdrkit maintainers, (C) 1994-2006 Joerg Schilling

wodim: No write mode specified.
wodim: Asuming -tao mode.
wodim: Future versions of wodim may have different drive dependent defaults.
TOC Type: 0 = CD-DA
scsidev: 'imation'
devname: 'imation'
scsibus: -2 target: -2 lun: -2
wodim: No such file or directory. Cannot open 'imation'. Cannot open SCSI driver.
wodim: For possible targets try 'wodim -scanbus'.
wodim: For possible transport specifiers try 'wodim dev=help'.
wodim:
wodim: For more information, install the cdrkit-doc
wodim: package and read /usr/share/doc/wodim/README.ATAPI.setup .
Burning of ..........
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 0.65; written and copyright by Michael Hipp and others
free software (LGPL/GPL) without any warranty but with best wishes
of: No such file or directory
This is wodim, not cdrecord. Don't expect it to behave like cdrecord in any
way, don't refer to it as "cdrecord". Send problem reports to
debburn-devel@lists.alioth.debian.org, don't bother Joerg Schilling with any
problems caused by this application.
Copyright (C) 2006 cdrkit maintainers, (C) 1994-2006 Joerg Schilling

wodim: No write mode specified.
wodim: Asuming -tao mode.
wodim: Future versions of wodim may have different drive dependent defaults.
TOC Type: 0 = CD-DA
scsidev: 'imation'
devname: 'imation'
scsibus: -2 target: -2 lun: -2
wodim: No such file or directory. Cannot open 'imation'. Cannot open SCSI driver.
wodim: For possible targets try 'wodim -scanbus'.
wodim: For possible transport specifiers try 'wodim dev=help'.
wodim:
wodim: For more information, install the cdrkit-doc
wodim: package and read /usr/share/doc/wodim/README.ATAPI.setup .
Burning All ..........
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 0.65; written and copyright by Michael Hipp and others
free software (LGPL/GPL) without any warranty but with best wishes
All: No such file or directory
This is wodim, not cdrecord. Don't expect it to behave like cdrecord in any
way, don't refer to it as "cdrecord". Send problem reports to
debburn-devel@lists.alioth.debian.org, don't bother Joerg Schilling with any
problems caused by this application.
Copyright (C) 2006 cdrkit maintainers, (C) 1994-2006 Joerg Schilling

wodim: No write mode specified.
wodim: Asuming -tao mode.
wodim: Future versions of wodim may have different drive dependent defaults.
TOC Type: 0 = CD-DA
scsidev: 'imation'
devname: 'imation'
scsibus: -2 target: -2 lun: -2
wodim: No such file or directory. Cannot open 'imation'. Cannot open SCSI driver.
wodim: For possible targets try 'wodim -scanbus'.
wodim: For possible transport specifiers try 'wodim dev=help'.
wodim:
wodim: For more information, install the cdrkit-doc
wodim: package and read /usr/share/doc/wodim/README.ATAPI.setup .
Burning hopes ..........
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 0.65; written and copyright by Michael Hipp and others
free software (LGPL/GPL) without any warranty but with best wishes
hopes: No such file or directory
This is wodim, not cdrecord. Don't expect it to behave like cdrecord in any
way, don't refer to it as "cdrecord". Send problem reports to
debburn-devel@lists.alioth.debian.org, don't bother Joerg Schilling with any
problems caused by this application.
Copyright (C) 2006 cdrkit maintainers, (C) 1994-2006 Joerg Schilling

wodim: No write mode specified.
wodim: Asuming -tao mode.
wodim: Future versions of wodim may have different drive dependent defaults.
TOC Type: 0 = CD-DA
scsidev: 'imation'
devname: 'imation'
scsibus: -2 target: -2 lun: -2
wodim: No such file or directory. Cannot open 'imation'. Cannot open SCSI driver.
wodim: For possible targets try 'wodim -scanbus'.
wodim: For possible transport specifiers try 'wodim dev=help'.
wodim:
wodim: For more information, install the cdrkit-doc
wodim: package and read /usr/share/doc/wodim/README.ATAPI.setup .
Burning Gemisch ..........
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 0.65; written and copyright by Michael Hipp and others
free software (LGPL/GPL) without any warranty but with best wishes

Playing MPEG stream 1 of 1: Gemisch ...

[0:00] Decoding of Gemisch finished.
This is wodim, not cdrecord. Don't expect it to behave like cdrecord in any
way, don't refer to it as "cdrecord". Send problem reports to
debburn-devel@lists.alioth.debian.org, don't bother Joerg Schilling with any
problems caused by this application.
Copyright (C) 2006 cdrkit maintainers, (C) 1994-2006 Joerg Schilling

wodim: No write mode specified.
wodim: Asuming -tao mode.
wodim: Future versions of wodim may have different drive dependent defaults.
TOC Type: 0 = CD-DA
scsidev: 'imation'
devname: 'imation'
scsibus: -2 target: -2 lun: -2
wodim: No such file or directory. Cannot open 'imation'. Cannot open SCSI driver.
wodim: For possible targets try 'wodim -scanbus'.
wodim: For possible transport specifiers try 'wodim dev=help'.
wodim:
wodim: For more information, install the cdrkit-doc
wodim: package and read /usr/share/doc/wodim/README.ATAPI.setup .
Burning Highest ..........
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 0.65; written and copyright by Michael Hipp and others
free software (LGPL/GPL) without any warranty but with best wishes
Highest: No such file or directory
This is wodim, not cdrecord. Don't expect it to behave like cdrecord in any
way, don't refer to it as "cdrecord". Send problem reports to
debburn-devel@lists.alioth.debian.org, don't bother Joerg Schilling with any
problems caused by this application.
Copyright (C) 2006 cdrkit maintainers, (C) 1994-2006 Joerg Schilling

wodim: No write mode specified.
wodim: Asuming -tao mode.
wodim: Future versions of wodim may have different drive dependent defaults.
TOC Type: 0 = CD-DA
scsidev: 'imation'
devname: 'imation'
scsibus: -2 target: -2 lun: -2
wodim: No such file or directory. Cannot open 'imation'. Cannot open SCSI driver.
wodim: For possible targets try 'wodim -scanbus'.
wodim: For possible transport specifiers try 'wodim dev=help'.
wodim:
wodim: For more information, install the cdrkit-doc
wodim: package and read /usr/share/doc/wodim/README.ATAPI.setup .
Burning Hopes ..........
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 0.65; written and copyright by Michael Hipp and others
free software (LGPL/GPL) without any warranty but with best wishes
Hopes: No such file or directory
This is wodim, not cdrecord. Don't expect it to behave like cdrecord in any
way, don't refer to it as "cdrecord". Send problem reports to
debburn-devel@lists.alioth.debian.org, don't bother Joerg Schilling with any
problems caused by this application.
Copyright (C) 2006 cdrkit maintainers, (C) 1994-2006 Joerg Schilling

wodim: No write mode specified.
wodim: Asuming -tao mode.
wodim: Future versions of wodim may have different drive dependent defaults.
TOC Type: 0 = CD-DA
scsidev: 'imation'
devname: 'imation'
scsibus: -2 target: -2 lun: -2
wodim: No such file or directory. Cannot open 'imation'. Cannot open SCSI driver.
wodim: For possible targets try 'wodim -scanbus'.
wodim: For possible transport specifiers try 'wodim dev=help'.
wodim:
wodim: For more information, install the cdrkit-doc
wodim: package and read /usr/share/doc/wodim/README.ATAPI.setup .
Burning Mix ..........
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 0.65; written and copyright by Michael Hipp and others
free software (LGPL/GPL) without any warranty but with best wishes

Playing MPEG stream 1 of 1: Mix ...

[0:00] Decoding of Mix finished.
This is wodim, not cdrecord. Don't expect it to behave like cdrecord in any
way, don't refer to it as "cdrecord". Send problem reports to
debburn-devel@lists.alioth.debian.org, don't bother Joerg Schilling with any
problems caused by this application.
Copyright (C) 2006 cdrkit maintainers, (C) 1994-2006 Joerg Schilling

wodim: No write mode specified.
wodim: Asuming -tao mode.
wodim: Future versions of wodim may have different drive dependent defaults.
TOC Type: 0 = CD-DA
scsidev: 'imation'
devname: 'imation'
scsibus: -2 target: -2 lun: -2
wodim: No such file or directory. Cannot open 'imation'. Cannot open SCSI driver.
wodim: For possible targets try 'wodim -scanbus'.
wodim: For possible transport specifiers try 'wodim dev=help'.
wodim:
wodim: For more information, install the cdrkit-doc
wodim: package and read /usr/share/doc/wodim/README.ATAPI.setup .
Burning Thumbs.db ..........
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 0.65; written and copyright by Michael Hipp and others
free software (LGPL/GPL) without any warranty but with best wishes
This is wodim, not cdrecord. Don't expect it to behave like cdrecord in any
way, don't refer to it as "cdrecord". Send problem reports to
debburn-devel@lists.alioth.debian.org, don't bother Joerg Schilling with any
problems caused by this application.
Copyright (C) 2006 cdrkit maintainers, (C) 1994-2006 Joerg Schilling

wodim: No write mode specified.
wodim: Asuming -tao mode.
wodim: Future versions of wodim may have different drive dependent defaults.
TOC Type: 0 = CD-DA
scsidev: 'imation'
devname: 'imation'
scsibus: -2 target: -2 lun: -2
wodim: No such file or directory. Cannot open 'imation'. Cannot open SCSI driver.
wodim: For possible targets try 'wodim -scanbus'.
wodim: For possible transport specifiers try 'wodim dev=help'.
wodim:
wodim: For more information, install the cdrkit-doc
wodim: package and read /usr/share/doc/wodim/README.ATAPI.setup .

Playing MPEG stream 1 of 1: Thumbs.db ...

[0:00] Decoding of Thumbs.db finished.
Burning brennen.sh ..........
This is wodim, not cdrecord. Don't expect it to behave like cdrecord in any
way, don't refer to it as "cdrecord". Send problem reports to
debburn-devel@lists.alioth.debian.org, don't bother Joerg Schilling with any
problems caused by this application.
Copyright (C) 2006 cdrkit maintainers, (C) 1994-2006 Joerg Schilling

wodim: No write mode specified.
wodim: Asuming -tao mode.
wodim: Future versions of wodim may have different drive dependent defaults.
TOC Type: 0 = CD-DA
scsidev: 'imation'
devname: 'imation'
scsibus: -2 target: -2 lun: -2
wodim: No such file or directory. Cannot open 'imation'. Cannot open SCSI driver.
wodim: For possible targets try 'wodim -scanbus'.
wodim: For possible transport specifiers try 'wodim dev=help'.
wodim:
wodim: For more information, install the cdrkit-doc
wodim: package and read /usr/share/doc/wodim/README.ATAPI.setup .
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 0.65; written and copyright by Michael Hipp and others
free software (LGPL/GPL) without any warranty but with best wishes

Playing MPEG stream 1 of 1: brennen.sh ...

[0:00] Decoding of brennen.sh finished.
This is wodim, not cdrecord. Don't expect it to behave like cdrecord in any
way, don't refer to it as "cdrecord". Send problem reports to
debburn-devel@lists.alioth.debian.org, don't bother Joerg Schilling with any
problems caused by this application.
Copyright (C) 2006 cdrkit maintainers, (C) 1994-2006 Joerg Schilling

wodim: No such file or directory. Cannot open 'imation'. Cannot open SCSI driver.
wodim: For possible targets try 'wodim -scanbus'.
wodim: For possible transport specifiers try 'wodim dev=help'.
wodim:
wodim: For more information, install the cdrkit-doc
wodim: package and read /usr/share/doc/wodim/README.ATAPI.setup .
 
Das Problem duerfte wohl hier liegen
wodim: No such file or directory. Cannot open 'imation'. Cannot open SCSI driver.
Und hier
mpg123 -s $var | cdrecord dev=imation -v -nofix -audio -swab -
und hier
cdrecord dev=imation -fix
kommt das Problem her.
Anstelle von imation solltest Du ein richtiges Device angeben, und zwar dass Deines Brenners, z.B. /dev/hdc (falls es als Secondary Master im System haengt).
Allgemein find ich das Script aber nicht so toll da hier in vielen kleinen Abschnitten gebrannt wird statt einfach durch. Einige, wohl vor allem aeltere, CD-Player koennten damit evtl. Probleme haben.
Falls Du Dein Linux ueber eine grafische Oberflaeche wie KDE oder Gnome verfuegt solltest Du der Einfachheit halber vielleicht besser auf eines der grafischen Brenntools wie z.B. K3B zurueckgreifen.
 
Das hab ich schon probiert, allerdings macht K3B keine Mp3's zu Wav's.

Suse 10.2 erkennt ja so ohne weiteres eh keine MP3's mehr.
 
Zurück