Jump to content

Need help! Linux version of a Windows batch file


Recommended Posts

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...

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...