No subject

Giorgos Keramidas keramida at hades.hell.gr
Fri Jul 9 00:16:50 EEST 1999


Kai to 0e.i.ko script tns bradias poy paizei ta .mp3 tou Sfakianaki me
random seira, kai mporeite aneta na kanete to PC sas juke-box gia to Xarama,
ton Dionyso ki alla Patrina stekia:

	#!/bin/bash
	cd /share/mp3/greek/notis_sfakiavakis
	while true ;do
	    how_many="`ls -1 | wc -l | sed -e 's/[ ]\+//'`"
	    random_choise=$(( $RANDOM % $how_many ))
	    ls -1 |\
	    sed -e "1,$(($random_choise - 1))d" |\
	    sed -e '2,$d' |\
	    xargs /local/bin/amp -q
	done

Eh, na min paizei o Notis aiwnia ospou na kopsete tis flebes sas kata mikos?

PS: Ki epeidh tha to ksexaso, to anwtero script pou eidate parapano, exei ta
ekshs dependencies:

	bash >= 1.14(6)
	amp >= 0.1pl235
	sed >= 2.05
	xargs >= 4.1

kai prepei kapos na arxisete na bazete kai ta .mp3 sas se mia taksh kato apo
to /share/mp3 gia na mporei ki o aplos o luser na paiksei ligo mousiki, ti
olo apo root account 0a paizete?

- giorgos
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================



More information about the Linux-greek-users mailing list