
November 24th, 2001, 04:16 PM
|
|
Registered User
|
|
Join Date: Jan 2001
Location: The Netherlands
Posts: 8
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
I'm using FreeBSD
The script is a perl script. It reads a queue every two seconds and, if a new mp3 has been added, it will play the mp3 using mpg123.
the command is something like:
system("nice --20 mpg123 $mp3Filename &");
I want it to run at top priority, because the server is a pentium 60 with 16 megs of ram, and it doubles as a small webserver. I wan't to prevent hick-ups in the mp3 playback, when people flood the webserver with requests. (I already reconfigured apache, but I'm not going to allow less clients, I've already reached the minimum for my environment)
|