LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-22-2003, 10:56 PM   #1
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Ultra Basic script...


Hi, I have a few applications that I run with ALOT of flags, I am thinking I could run these applications with a very simple/basic script, but am not sure if it'd work right, here's an example of what I am thinking would work:

Code:
!#/bin/bash
application --this-flag of 10 \
--this-flag of 10 --this flag of 10 \
--this-flag of 10 --this-one-also \
--and-so on --and-so on


A more "real" example:
Code:
#!/bin/bash
mencoder -alang en -dvd 1 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=1200:vme=5 \
-vop scale -zoom -xy 512 \
-oac mp3lame -lameopts abr:br=160 \
-o /home/masterc/movies/DVD.avi
For DVD ripping. If that would work, is my syntax correct? And then to execute it, would I simply:
./mendvd

Assuming I'm in the directory containing the script, and I've titled it mendvd?

Thanks for any suggestions, bagerings, and blatent attacks

Cool
 
Old 04-22-2003, 11:31 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Of course it would mate, how could you have
ANY doubt? ;)

Cheers,
Tink
 
Old 04-23-2003, 12:00 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Original Poster
Rep: Reputation: 69
Cool, thanks for the re-assurance tink
 
Old 04-23-2003, 10:22 AM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
cool

you could also put $1 in the place of DVD and then use it like this

mendvd nameofmovie
 
  


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
Basic Bash script help valadamir Programming 2 12-01-2004 10:37 AM
basic script help required jimmorrison Linux - General 5 10-26-2004 11:31 PM
basic shell script help lin00b Linux - Newbie 2 10-08-2004 11:32 PM
Basic shell script, please help colly Linux - General 4 10-05-2004 11:24 AM
Help with basic Administrator Script NightWolf_NZ Programming 1 09-11-2003 01:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:48 PM.

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