About 50 results
Open links in new tab
  1. How do I execute a bash script in Terminal? - Stack Overflow

    Mar 9, 2018 · A: To "execute this script" from the terminal on a Unix/Linux type system, you have to do three things: 1. Tell the system the location of the script. (pick one) # type the name of the script with …

  2. How to execute script in the current shell on Linux?

    To source the script into the current shell: type the command . script.sh or source script.sh Note: . in bash is equivalent to source in bash. This acts as if you typed in the contents of "script.sh". For …

  3. How do I run a shell script without using "sh" or "bash" commands?

    Run the script using just its name, scriptname. If you don't have access to /usr/local/bin then do the following: Create a folder in your home directory and call it bin. Do ls -lA on your home directory, to …

  4. linux - How to run a shell script at startup - Stack Overflow

    Oct 19, 2012 · The absolute easiest method if all you want to run is a simple script, (or anything) is if you have a gui to use system > preferences then startup apps. just browse to the script you want and …

  5. bash - Run script as another user on Linux - Stack Overflow

    2 I am trying to create a Linux terminal menu by way of a simple script. Within the script it will have some commands that will submit a job (a shell script for example) as another user without password …

  6. linux - How to run script as another user without password? - Stack ...

    I have script.sh that must be run as user2. However, this script can only be run under user1 in my application. I would like the following command to run: su user2 -C script.sh but be able to run

  7. How to run a .sh-script from any path in a terminal?

    The easiest way is to choose a directory to hold your scripts (or softlinks to your scripts) and make sure that is in your path. On Linux, a logical choice is /usr/local/bin. Then simply make sure your scripts …

  8. linux - Execute a shell script in current shell with sudo permission ...

    Sep 15, 2013 · Sourcing a script can only be used with a bash script (if you are running bash). It effectively types the commands in as if you did them. This is useful as it lets a script change …

  9. Shell Script: Execute a python program from within a shell script

    Here I have demonstrated an example to run python script within a shell script. For different purposes you may need to read the output from a shell command, execute both python script and shell …

  10. linux - How do you run bash script as a command? - Stack Overflow

    Jan 7, 2016 · The script is located in one directory, and because I do all of configurations using putty, I have to either use the full path of the file or move to the directory that contains the file. I would like to …