This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
linux:scripts:basics [2014/06/05 15:19] – created lunetikk | linux:scripts:basics [2017/03/01 12:50] – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== Commands ===== | ===== Commands ===== | ||
- | ^Command^What it does^ | + | ^ Command |
+ | | # | ||
| VAR=var | | VAR=var | ||
| $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 [ " |
===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
Line 14: | Line 15: | ||
Problem: \\ | Problem: \\ | ||
- | Running your script prompts | + | Running your script prompts |
Fix: \\ | Fix: \\ | ||
Open your script with vi and execute the following | Open your script with vi and execute the following | ||
< | < | ||
+ | |||
+ | ==== Not enough rights ==== | ||
+ | |||
+ | Problem: \\ | ||
+ | Running your script requires more rights | ||
+ | |||
+ | Fix:\\ | ||
+ | Make your script executable with the following command | ||
+ | < | ||
+ | \\ | ||
+ | \\ | ||
+ | ~~DISCUSSION~~ | ||