LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 04-15-2003, 04:00 PM   #1
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
lazy man watching porns shellscript


i was watching movie clips(5-20sec length) today morning
i was so tired and didn't want to wait inbetween movies
so i just downloaded all movies and wrote a shellscript to watch it successively

here it is..

#!/usr/bin/bash

if [ -z "$1" ]; then
echo usage: $0 extension
exit
fi

extension=$1
files=`ls -rt *.$extension`

for i in $files;do
mplayer -vo xv -ao oss $i
done

rm $files


after doing this i thought that it would be cool, if a gui player can takes links from browsers
or even bookmark manager that i can just drag and drop links from browser..

well i'm lazy


by mouse drag and drop

Last edited by trickykid; 04-15-2003 at 04:06 PM.
 
Old 04-15-2003, 04:07 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you're serious? that's an awful way to do it. you'd just use a playlist, or at least play with a wildcard.
 
Old 04-15-2003, 04:07 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Can we please leave out the graphic words that were used in your post, its really unecessary. And this belongs more in the Success forum, been moved.
 
Old 04-15-2003, 05:31 PM   #4
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Original Poster
Rep: Reputation: 30
haha

does mplayer *.mpg works ?
i guessed it will pop up several windows

anyway i had fun haha.
i don' htave gmplayer to use playlist =(
 
Old 04-15-2003, 05:33 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
playlist works from a command line, rtfm
 
Old 04-15-2003, 05:37 PM   #6
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Original Poster
Rep: Reputation: 30
hehe
.. thanks

=)
 
Old 04-30-2003, 06:11 PM   #7
Whitehat
Senior Member
 
Registered: Feb 2003
Location: The Cold North
Distribution: SuSE 9.1
Posts: 1,289

Rep: Reputation: 46
Um.....Porn...?

Geeeez.

Do something else....

Porn is such a waste of time...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Shellscript paraiso Linux - Newbie 7 05-12-2005 07:25 AM
shellScript help paraiso Linux - Newbie 2 05-10-2005 07:09 PM
ShellScript sharadgana Programming 1 12-16-2004 01:16 PM
LAZY man gudie (like me) for mplayer starking Linux - Newbie 1 07-12-2004 10:06 AM
I know I am lazy but... Vlad_M Linux - General 6 09-24-2002 04:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 10:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration