how to run script
Hi,
I found one script on the linux device driver book Code:
#!/bin/sh I usually didn't use script instead of just running one by one command to load my module by using (insmod, mknod, chmod) |
Save it as whatever you like, though it is usually a good idea to give it the extension ".sh". Then you make the file executable by running the command "chmod +x filename"; after that you can run the script from the terminal or from within your GUI file manager.
|
file name doesn't matter (you can call it <file>.sh but it's really not important). Create empty file:
touch <file> Open it with editor: vim <file> Press 'i' on your keyboard to enter 'insert' mode. Copy/paste the text of your script. Press 'Esc' Type ':wq' to save it. Make the file executable: chmod +x <file> Run it (make sure you are in the same directory as file): ./<file> |
klearview and MS3FGX,
Thank you for quick response, improve my knowledge and now i happy to use script |
All times are GMT -5. The time now is 07:51 AM. |