This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:scripts:scriptstarter [2014/06/05 15:26] – lunetikk | linux:scripts:scriptstarter [2018/12/20 17:40] (current) – Discussion status changed lunetikk | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Startscript ===== | ===== Startscript ===== | ||
| - | This script can be used to start and stop your script from anyfolder | + | This script can be used to start and stop your script from any folder |
| Start with: | Start with: | ||
| < | < | ||
| - | < | + | < |
| #!/bin/bash | #!/bin/bash | ||
| Line 35: | Line 35: | ||
| </ | </ | ||
| + | ===== Troubleshooting ===== | ||
| + | |||
| + | ==== Integer error ==== | ||
| + | |||
| + | Reason:\\ | ||
| + | Ubuntu says that it cant compare because your variable isnt integer. | ||
| + | \\ | ||
| + | \\ | ||
| + | Fix:\\ | ||
| + | Use == instead of -eq | ||
| + | |||
| + | \\ | ||
| + | \\ | ||
| + | ~~DISCUSSION: | ||