Register
It is currently Sat Sep 20, 2014 10:03 pm

youtube video viewer


All times are UTC - 6 hours


Post new topic Reply to topic  [ 2 posts ] 
Author Message
 PostPosted: Wed Mar 02, 2011 4:33 pm   

Joined: Wed Mar 02, 2011 4:13 pm
Posts: 1
this is just small script that I use like command in terminal :D

Code:
#!/bin/bash

cvlc http://www.youtube.com"$(curl http://www.youtube.com/results?search_query=$*|grep video-long-title-|head -1|awk '{print $3}'|cut -d\" -f2)"


you must have installed vlc

I use that like this:
name the script "yt"
than move it to /bin/
and to watch some video just type in terminal: "yt something"
if you want search for something with spaces, use dots instead of

someone must be noob like me, so I gonna type this little tut ^^
Code:
rename it to "yt"
than make it executable "chmod +x yt"
move it to /bin/ ..you must use sudo "sudo mv yt /bin/"


..I'm new to linux, so don't expect to much :)


Top
 Profile  
 PostPosted: Mon Mar 28, 2011 7:30 am   

Joined: Mon Mar 28, 2011 7:22 am
Posts: 5
For what its worth.. throw your scripts in your home ~/bin folder ... It should make your work easier to backup when everything is in your folder.. use env,set,export to mess with your environment variables.. you can see your PATH= via your .login/.profile/.bashrc files. to set things like this across the board for following users.. put your changes in to /etc/skel .. makes things kickass for if/when you start adding a bunch of users..


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 3 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:  
cron


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