LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-12-2007, 03:24 PM   #1
rudlavibizon
LQ Newbie
 
Registered: Apr 2006
Posts: 10

Rep: Reputation: 0
Writing bash scripts


I've been recording demos of true combat elite (a wolfenstein mod) game and found out that the only way to record this is in .tga sequence in the games folder in my home directory. That means that i have to move those images to my other partition because I'm running out of space on my main partition. Then i have to convert those to jpg using imagemagick and after that encode them to mjpeg avi using mencoder. That all works fine and I'm getting along well (as a newbie) with editing simple scripts (using "for" loops) to accomplish these tasks.
My question is this: Is it possible to use bash scripts to automate all of this in a one single command? If it is possible then can anyone point me to a good tutorial/book that I can learn how to do this. I have little to no experience in programming. Thank you.
 
Old 02-12-2007, 03:33 PM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
Quote:
Originally Posted by rudlavibizon
My question is this: Is it possible to use bash scripts to automate all of this in a one single command? If it is possible then can anyone point me to a good tutorial/book that I can learn how to do this. I have little to no experience in programming. Thank you.
Although I don't really know what you are doing...you can certainly stitch together individual linux commands into a bash script and do everything in one go. You can even put stops in script so it can abort if it encounters something abnormal.

I suggest you look at the Bash Beginner's guide and Advanced Bash Scripting guide on http://www.tldp.org/guides.html

Hope this helps.
 
Old 02-13-2007, 12:07 PM   #3
rudlavibizon
LQ Newbie
 
Registered: Apr 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks a lot. I downloaded the guide and i think its what i was looking for.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hi plz help me in writing scripts rammu_sivraj Linux - Newbie 5 06-27-2006 03:37 PM
Difficulties writing shell scripts lostinsyntax Programming 8 05-02-2005 08:42 AM
Difficulties writing shell scripts lostinsyntax Linux - Newbie 2 05-01-2005 04:48 PM
Writing C++ Shell Scripts MasterKin8T Programming 5 09-29-2003 11:43 AM
Writing scripts Rameriez Programming 2 01-07-2003 01:01 AM


All times are GMT -5. The time now is 08:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration