Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Question
How to include function in a bash script ?
Answer

source filename [arguments]

source functions.sh

source /path/to/functions.sh arg1 arg2

source functions.sh WWWROOT=/apache.jail PHPROOT=/fastcgi.php_jail


Question
How to include function in a bash script ?
Answer
?

Question
How to include function in a bash script ?
Answer

source filename [arguments]

source functions.sh

source /path/to/functions.sh arg1 arg2

source functions.sh WWWROOT=/apache.jail PHPROOT=/fastcgi.php_jail

If you want to change selection, open document below and click on "Move attachment"

Source command - Linux Shell Scripting Tutorial - A Beginner's handbook
mes in $PATH are used to find the directory containing FILENAME. If any ARGUMENTS are supplied, they become the positional parameters when FILENAME is executed. Syntax The syntax is as follows: <span>source filename [arguments] source functions.sh source /path/to/functions.sh arg1 arg2 source functions.sh WWWROOT=/apache.jail PHPROOT=/fastcgi.php_jail Example Create a shell script called mylib.sh as follows: #!/bin/bash JAIL_ROOT=/www/httpd is_root(){ [ $(id -u) -eq 0 ] && return $TRUE || return $FALSE } Save and close the fi

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.