This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
linux:scripts:basics [2014/10/01 13:40] – lunetikk | linux:scripts:basics [2018/12/20 17:44] – Discussion status changed lunetikk | ||
---|---|---|---|
Line 8: | Line 8: | ||
| $VAR | inserts var whereever $VAR is placed | | $VAR | inserts var whereever $VAR is placed | ||
| case - esac | inserts case | | | case - esac | inserts case | | ||
- | | if - fi | inserts if | | + | | if [ " |
===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
Line 14: | Line 14: | ||
==== Interpreter error ==== | ==== Interpreter error ==== | ||
- | Problem: | + | === Problem: |
Running your script prompts interpreter error\\ | Running your script prompts interpreter error\\ | ||
- | Fix: \\ | + | === Fix: === |
Open your script with vi and execute the following | Open your script with vi and execute the following | ||
< | < | ||
Line 23: | Line 23: | ||
==== Not enough rights ==== | ==== Not enough rights ==== | ||
- | Problem: | + | === Problem: |
Running your script requires more rights | Running your script requires more rights | ||
- | Fix:\\ | + | === Fix: === |
- | Make your script | + | Make your script |
< | < | ||
+ | \\ | ||
+ | \\ | ||
+ | ~~DISCUSSION: | ||