Thread Scriptfehler
(10 answers)
Opened by Gast at 2006-08-25 17:24
Nicht übel, allerdings sieht das input Format folgendermassen aus:
#EXTM3U #EXTINF:-1,01- (reach up for the) sunrise ///root/gcc/backup/frank/Astronaut/01- (reach up for the) sunrise.mp3 #EXTINF:-1,02-want you more ///root/gcc/backup/frank/Astronaut/02-want you more.mp3 #EXTINF:-1,04-astronaut ///root/gcc/backup/frank/Astronaut/04-astronaut.mp3 #EXTINF:-1,07-taste the summer ///root/gcc/backup/frank/Astronaut/07-taste the summer.mp3 #EXTINF:-1,12-still breathing ///root/gcc/backup/frank/Astronaut/12-still breathing.mp3 usw usw usw d.h die Zeilen hinter den Kommentaren sind überflüssig zu kommentieren :) ausserdem wäre es auch sinnvoller die variablevor den Dateinamen zu hängen. Ziel ist es diese Liste mkisofs zu übergeben, um das iso hinterher zu brennen dafür hab ich grep -v ^# test.erg | tr "\n" "\0" | xargs -0 mkisofs > /mnt/f/toll.iso edit: bei deinem script kommt: perl 1.pl test.m3u test.erg Argument "#EXTM3U\n" isn't numeric in printf at 1.pl line 22. Argument "#EXTINF:-1,01- (reach up for the) sunrise\n" isn't numeric in printf at 1.pl line 22. Argument "///root/gcc/backup/frank/Astronaut/01- (reach up for the..." isn't numeric in printf at 1.pl line 22. Argument "#EXTINF:-1,02-want you more\n" isn't numeric in printf at 1.pl line 22 Argument "///mnt/f/oasis/Oasis_Where Did It All Go Wrong.mp3\n" isn't numeric in printf at 1.pl line 22. 000000100020003000400050006000700080009001000110012001300140015001600170018001900200021002 200230024002500260027002800290030003100320033003400350036003700380039004000410042004300440 045004600470048004900500051005200530054005500560057005800590060006100620063006400650066006 700680069007000710072007300740075007600770078007900800081008200830084008500860087008800890 090009100920093009400950096009700980099010001010102010301040105010601070108010901100111011 201130114011501160117011801190120012101220123012401250126012701280129013001310132013301340 135013601370138013901400141014201430144014501460147014801490150015101520153015401550156015 701580159016001610162016301640165016601670168016901700171017201730174017501760177017801790 18001810182018301840\n\n <!--EDIT|Frank#|1156515569--> |