Play a stream and give back the shell

wget; cvlc somestream.pls&sleep 5; rm somestream.pls*
I wanted to play a song from the shell and get the shell back, I also dont want to store the file if it is not needed. edit, not sure if I need to mention it... killall vlc to stop it
Sample Output
[username@puppy ~]$ wget; cvlc secretagent130.pls&sleep 5; rm secretagent130.pls*
--2011-08-04 15:20:46--
Connecting to||:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 213 [audio/x-scpls]
Saving to: ?secretagent130.pls?

100%[===========================================>] 213         --.-K/s   in 0s      

2011-08-04 15:20:46 (13.2 MB/s) - ?secretagent130.pls? saved [213/213]

[2] 2845
VLC media player 1.1.10 The Luggage (revision exported)
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
[0x8ab51c4] dummy interface: using the dummy interface module...
[0x8a13e94] main playlist: stopping playback
[0xb64011f4] access_http access: Raw-audio server found, m4a demuxer selected
[0xb640574c] packetizer_mpeg4audio demux packetizer: AAC channels: 2 samplerate: 44100
[username@puppy ~]$ 

By: tomjrace
2011-08-04 19:24:18

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: