klipp Posted October 9, 2006 Report Share Posted October 9, 2006 From an icon on the Desktop I need the following to happen: (I assume I have to use KDESU before the program name ) which will be kdetv-Television and another with kdetv-S-Video kdetv-Television, I need to do the following: rmmod bt878 rmmod bttv modprobe bttv card=37 tuner=43 modprobe bt878 kdetv then for kdetv-S-Video: rmmod bt878 rmmod bttv modprobe bttv card=72 tuner=5 modprobe bt878 I don't know how to make the equivelent windoz batch files in Linux, Thanks for any help! EDIT(Qchem): Moved to Terminal Shell Commands... Quote Link to comment Share on other sites More sharing options...
Qchem Posted October 10, 2006 Report Share Posted October 10, 2006 You will be able to do this as a shell script, basically you can just create a file which contains the commands you wish to run. It is good practice to start the script with #!/bin/bash and end it with exit 0 so that a new session is started and exited cleanly. To make the file executable, either right click on it and change the permissions or via the command line: chmod +x nameofscript Hope this helps you get started. Quote Link to comment Share on other sites More sharing options...
emmanuel_uk Posted October 10, 2006 Report Share Posted October 10, 2006 if you ever want to learn about bash scripting the reference is the advanced bash scripting guide There are also tutorials around for less advanced uses Much more flexible than *.bat Quote Link to comment Share on other sites More sharing options...
klipp Posted October 10, 2006 Author Report Share Posted October 10, 2006 Hey, THANKS! To both of you, that got me what I needed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.