add shebang to the script
#!/bin/bash
sudo java -jar "/home/ubuntu/FirstWebAppWithoutDB.jar"
and execution permission
chmod +x spring-start.sh
Related Contents:
- How do I prompt for Yes/No/Cancel input in a Linux shell script?
- ./configure : /bin/sh^M : bad interpreter [duplicate]
- Changing default shell in Linux [closed]
- How to sort a file in-place?
- How do you normalize a file path in Bash?
- What is the Linux equivalent to DOS pause?
- How can I quickly sum all numbers in a file?
- How to copy a file to multiple directories using the gnu cp command
- The ‘eval’ command in Bash and its typical uses
- unix – head AND tail of file
- How to reverse-i-search back and forth? [duplicate]
- Linux bash: Multiple variable assignment
- How do I change bash history completion to complete what’s already on the line?
- Compare integer in bash, unary operator expected
- How to move all files including hidden files into parent directory via *
- How can I put the current running linux process in background? [closed]
- Display two files side by side
- What does ‘cd -‘ stand for?
- Check whether a certain file type/extension exists in directory [duplicate]
- Checking for environment variables
- How to split a file and keep the first line in each of the pieces?
- Bash Scripting – How to set the group that new files will be created with?
- How to cut first n and last n columns?
- get notification when systemd-monitored service enters failed state
- Bash Prompt Below Output – Background Log Tail
- Randomly shuffling lines in Linux / Bash
- What are my environment variables? [closed]
- Run bash command on jenkins pipeline
- Using the passwd command from within a shell script
- Setting environment variables in Linux using Bash
- What is the difference between using `sh` and `source`?
- bash: silently kill background function process
- How do you run a script on login in *nix?
- Exit code of variable assignment to command substitution in Bash
- rm fails to delete files by wildcard from a script, but works from a shell prompt
- How to join multiple lines of filenames into one with custom delimiter
- Subtract days from a date in Bash
- How to remove all non-numeric characters from a string in Bash?
- Expression after last specific character
- Shell script: Run function from script over ssh
- The return code from ‘grep’ is not as expected on Linux
- How can I pass a file argument to my bash script using a Terminal command in Linux? [duplicate]
- Get ceiling integer from number in linux (BASH)
- How to pass parameters to a Bash script?
- Methods to detect public IP address in bash
- How to perform a for-each loop over all the files under a specified path?
- Count occurrences of character per line/field on Unix
- Colour highlighting output based on regex in shell
- Linux head/tail with offset
- Shell script working fine without shebang line? Why? [duplicate]