Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Linux shell scripts

  1. Jul 11, 2007 #1
    I am new to the Linux os & i am eager to learn shell scripts for my engineering applications.
    How to learn step by step any suggestions?

    I am not aware any programming languages.

    For my immediatiae application is

    We have installed custom build software in one particular folder,
    exe. file avalible in subfolder file i.e end of 5 sub folder
    To execute this software cannot installed icon in desktop so every time by using terminal using change directories command we are executing
    also while system boot up license file doesnot intilized automatically has to be given command everyday .Remembering the commands is somewhat uneasy.

    Beyond this what all are the applications we can do by using linux shell scripts?I am engineering backround so i want to see any my engineering applications can i utlize?

  2. jcsd
  3. Jul 12, 2007 #2


    User Avatar
    Gold Member

    Linux Bash scripting is pretty powerful in the realm of system administration and automating system tasks. If you wish to learn some sort of scripting language geared toward engineering and scientific computing in general; I suggest that you invest your time in learning a language like python instead.

    You can pretty much pack all those requirements into one script file:
    1) Load license file
    2) Change to directory where binary executable is.
    3) And finally run it.

    A bash script for this task would be fairly simple to make. Basically a bash script is a file that contains a list of commands in the order you'd like them to be executed.

    As simple bash script would be like this:
    Code (Text):
    echo "hello, $USER"
    echo "Listing files in  $PWD"
    ls -al
    Line one tells the system that this file should be run as a bash script.
    Lines two and three are basically printing messages to the stdout.
    Line four it the command that needs to be executed.

    So all you need to do in mod the above script and place what ever commands you usually type.
  4. Jul 12, 2007 #3
    All the guides you'll need for an introduction to Linux and shell scripts
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook