Play a stream and give back the shell

wget http://somesite.com/somestream.pls; 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 http://somafm.com/secretagent130.pls; cvlc secretagent130.pls&sleep 5; rm secretagent130.pls*
--2011-08-04 15:20:46--  http://somafm.com/secretagent130.pls
Resolving somafm.com... 64.147.167.20
Connecting to somafm.com|64.147.167.20|: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 ~]$ 

-1
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?

commandlinefu.com 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.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

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: