ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Aloha,
Yes it should. bash commands go in sequence one after the other normally. This might be able to be modified but I am not sure how. You could also put a pause after each one finishes so you could do anything else you need to and then "Hit any key to continue." Not sure how to do that either but it's a start.
Mahalo,
Edward
Ok, well I created a BASH script but I was trying to be clever and have a variable change the number of the episode like this
Code:
#! /bin/bash
COUNT=8
# bash until loop
until [ $COUNT -gt 12 ]; do
echo Value of count is: $COUNT
echo tovid -in b$count.avi -out bloodspell_$count
let COUNT=COUNT+1
done
This obviously doesn't work so do you have any idea as to how to format the COUNT variable so it fits into the script?
I'm not sure who "it" is. If you mean the tovid program, and putting a "yes" on the next line in the script, that won't work. I'm not familiar with this program, but it might have an option to just go ahead without asking any questions, see its man page. You could also pipe the word "yes" into its standard input:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.