.sh file help - Printable Version +- Linux-Noob Forums (https://www.linux-noob.com/forums) +-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html) +--- Forum: Tips and Tricks (https://www.linux-noob.com/forums/forum-59.html) +---- Forum: Filesystem Management (https://www.linux-noob.com/forums/forum-26.html) +---- Thread: .sh file help (/thread-2275.html) |
.sh file help - paveway - 2005-12-29 Ok I have been in Korea for the last year and had to leave the Red hat box here in the states. I have forgotten how to do alot of stuff. Right now my current problem is finding out how to run/open a .sh file (boinc_5.2.13_i686-pc-linux-gnu.sh). It is for the Einstein@Home project. I am greatful for any help. paveway .sh file help - paveway - 2005-12-29 Nevermind I figured it out. .sh file help - anyweb - 2005-12-29 for others refererence chmod +x file.sh will make a file executable then sh file.sh will run the script cheers anyweb .sh file help - IJNNJI - 2011-12-15 is there a way to start multiple programs in their own terminals that all start from the same sh file? Also if that sh file uses inputs to get variables, can those variables carry over to the new terminals? .sh file help - Dungeon-Dave - 2011-12-17 Quote:is there a way to start multiple programs in their own terminals that all start from the same sh file?Yup - most people, when logging in, will all execute /etc/bashrc - a system-wide script that sets default profile settings. The file itself is simply a program on disk. Many users can run that same program, creating several processes from the same code. Quote:Also if that sh file uses inputs to get variables, can those variables carry over to the new terminals?Not directly - there will need to be some intercommunication layer, such as a lock file that all processes write to and read from. However, using a file is an inefficient method. Most applications will pass control of sharing information to another layer that can cope with multiple read/write accesses, such as a database layer (mysql, postgres, etc). This is how most websites work - many users accessing one webpage creates multiple threads in memory, each accessing the same database. Does that help at all? .sh file help - Dungeon-Dave - 2011-12-17 okay - just re-read your original post. Are you looking at starting multiple BOINC processes to run on your machine from one set of config files? If so, I do the same thing with folding@home. |