LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Bash - Using variable from a .conf file (https://www.linuxquestions.org/questions/programming-9/bash-using-variable-from-a-conf-file-109468/)

steevy18 10-28-2003 09:12 AM

Bash - Using variable from a .conf file
 
Helle I have a conf file name tp4backup.conf
this is the file :

SERVICE="srvtest"

[servtest]
PRE_CMD="allo"
[/servtest]

Ok now, from a .sh script, how can I use my variable defined in the .conf file....

Please help me
Thanks
steve

Hko 10-28-2003 11:58 AM

source the conf file in your script.


All times are GMT -5. The time now is 04:09 PM.