Quote:
Originally Posted by muskiediver
Joe/Zefo - Any ideas as to which program could do this? I am completely new to writing cron jobs.
|
then i would really suggest reading some documentation and do some googling. ok, now i am not sure if i understood correctly but to me it seems you want the following:
1. cron configuration part
let cron daemon initiate the prepared script at given time (for this you need to have crond service running and appropriate line in /etc/crontab -> man crontab will tell you more)
2. script writing part
as for the artist/song info extraction maybe mplayer/ffplay could do that - i dont have any file to test with. once this is done the rest should be quite simple.
theoretically the script could look like this:
mplayer -identify movie.rm | awk/sed construction + storing appropriate values into variables (say artist and song)
ftp video_on_local_machine.rm remote_machine:/var/www/whatever/$artist-$song with corresponding .ftprc file in your home directory