AudioCD from MP3s & Answering Machine program
John Gravezas
wizgrav at netsmart.gr
Wed Jun 7 12:09:42 EEST 2000
Kalo tha itan na mathis na hrisimopoiis ta utils tis consolas kai tin perl
gia na ta kollas kai na ftiahnis mikro-programmatakia.To parakato tha sou
kani tin doulia(an kai nomizo oti tha ta peksi me special characters sta
onomata ton mp3)
----------------------------------------------------
#!/usr/bin/perl
$speed='2';
$dev='2,0';
open(LIST , "ls -1 *.mp3|");
local($\);
$buffer=<LIST>;
$buffer=~ s/\.mp3//;
close LIST;
@mp3list=split("\n",$buffer);
foreach $song(sort @mp3list){
chomp $song;
system("mpg123 -w $song\.wav $song\.mp3");
$record .= "$song\.wav ";
}
system("cdrecord -v speed=$speed dev=$dev -audio $record");
exit 0;
----------------------------------------------------
Afto to scriptaki tha metatrepsi ola ta mp3 se ena directory(den vazo kai
to heri mou stin fotia giafto omos) se .wav kai tha ta stili gia
psisimo(pripotheti tin iparksi tou mpg123 kai tou cdrecord).Ine adokimasto
kai to egrapsa epidi mou irthe i idea apo afto to thread.Kathe idea
efprosdekti...Alla min ta perimenoume kai ola apo to freshmeat kai tous
allous to Linux ehi hilia ergalia gia na kanis tin doulia sou kai na mathis
kiolas.
--
screw you guys, I'm going $HOME
--
linux-greek-users mailing list -- http://lists.hellug.gr
More information about the Linux-greek-users
mailing list