Register
It is currently Wed Sep 03, 2014 1:00 am

Date checker script


All times are UTC - 6 hours


Post new topic Reply to topic  [ 1 post ] 
Author Message
 PostPosted: Sun Feb 23, 2014 5:47 am   

Joined: Sun Feb 23, 2014 5:30 am
Posts: 1
Hello guys
I need the following script ar advice on how to go about it. I have very little knowledge on scripting, but am willing to learn.

I have a file with lines that looks like this: 1204200141345_song.mp3 the numbers are date and time. day=12, month=04, year=2014, hour=13, min=45

I need a script that will read through the file and if a line maches the current date and time it will play the mp3 via mplayer/mpg123 at the correct time. When the mp3 ends it must continue to read the file. The file changes all the time. new lines go in other line are removed. the script will run as long as the pc is on.

Thanks in advance.


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP