Horje
ubuntu server does not run scripts Code Example
ubuntu server does not run scripts
First, ensure your script begins with the correct hash-bang, 
e.g. #!/bin/bash

Then make sure the .sh file is executable -
    Open a terminal using Ctrl+Alt+T or from the applications menu
    Navigate to the location of the .sh file. e.g. 
    cd ~/location/to/my/file
    Run  
    chmod u+x <file name>.sh
    , or if permission is an issue, 
    sudo chmod u+x <file name>.sh 
    and enter your password to confirm
    Alternatively, you can right-click the .sh file from the file 
    browser and update permissions via the Properties option




Shell

Related
kill process group linux Code Example kill process group linux Code Example
bash single vs double quotes Code Example bash single vs double quotes Code Example
linux bring process to foreground Code Example linux bring process to foreground Code Example
vim strip trailing whitespace Code Example vim strip trailing whitespace Code Example
ubuntu delete files older than 5 days Code Example ubuntu delete files older than 5 days Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11