![]() The variables, functions and aliases created in this subshell are only known to the particular bash session of that subshell. It is preferred to execute the script like this in a subshell. This is the most common way to execute a script. Willy:~/scripts> echo $COLOUR willy:~/scripts> echo $VALUE willy:~/scripts> Willy pts/3 - Sat 2pm 3:33m 36.39s 36.39s BitchX willy ir I will now fetch you a list of connected users:ģ:38pm up 18 days, 5:37, 4 users, load average: 0.12, 0.22, 0.15 rwxrw-r- 1 willy willy 456 Dec 24 17:11 script1.sh When this is done, the script can run like any other command: willy:~/scripts> chmod u+x script1.sh willy:~/scripts> ls -l script1.sh ![]() When setting permissions, check that you really obtained the permissions that you want. The script should have execute permissions for the correct owners in order to be runnable.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |