niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » shell
Record from stream at a specified time
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Icarus Sparry
*nix forums Guru


Joined: 19 Feb 2005
Posts: 342

PostPosted: Sat Feb 12, 2005 6:44 am    Post subject: Re: Record from stream at a specified time Reply with quote

On Sat, 12 Feb 2005 07:45:17 +0100, Salve Håkedal wrote:

Quote:
I can record this stream with:
wget http://radio.hiof.no/nrk-p2-128.ogg and then play it with
play http://radio.hiof.no/nrk-p2-128.ogg

If I have to go to work, but want my computer at home to record a
radioprogram starting at say 10.30 and finish at 10.45; is there a nice
way to do that?

Salve
http://www.fiolinmaker.no/engelsk.html

How about

at 10:30 <<'EOF'
wget http://radio.hiof.no.nrk-p2-128.ogg &
sleep $((15*60))
kill $!
EOF

to start a command at 10:30, start the wget in the background, sleep for
15 mins, then kill off the wget. You might want to replace the $((15*60))
by 900 if your shell doesn't understand $(( ... ))
Back to top
Salve Håkedal
*nix forums beginner


Joined: 28 Jun 2005
Posts: 12

PostPosted: Sat Feb 12, 2005 5:45 am    Post subject: Record from stream at a specified time Reply with quote

I can record this stream with:
wget http://radio.hiof.no/nrk-p2-128.ogg
and then play it with
play http://radio.hiof.no/nrk-p2-128.ogg

If I have to go to work, but want my computer at home to record a
radioprogram starting at say 10.30 and finish at 10.45; is there a nice way
to do that?

Salve
http://www.fiolinmaker.no/engelsk.html
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 11:08 pm | All times are GMT
navigation Forum index » Programming » shell
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Running php file everyday on scheduled time sachin PHP 1 Fri Jul 21, 2006 12:49 pm
No new posts Does stream I/O support "%a" floating-point format? John Friedland C++ 3 Fri Jul 21, 2006 9:26 am
No new posts getimagesize():failed to open stream: sree PHP 0 Fri Jul 21, 2006 6:24 am
No new posts How to show the last time Solaris 8 machine was patched Arizona Solaris 2 Thu Jul 20, 2006 1:42 pm
No new posts anvil status reports not on time? Carlos Carvalho Postfix 5 Thu Jul 20, 2006 12:04 am

Debt Consolidation | RC51 | Bankruptcy | Car Finance | Virgin credit card
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2465s ][ Queries: 20 (0.1659s) ][ GZIP on - Debug on ]