Hallo !
Ich hab folgende Situation:
In einem Script habe ich unzählige Variablen sowie Zugangsdaten für FTP gesetzt. Diese würde ich gerne vom eigentlichen Script auslagern in eine config Datei.
Wie kann ich bei einem Shell-Script eine Datei includieren, so dass er mir die Variablen aus der anderen (config) Datei liest ?
greets
RM
shell-script Frage / datei includieren
-
olaf.dietsche
- Posts: 401
- Joined: 2002-12-19 02:06
- Location: Siegburg
Re: shell-script Frage / datei includieren
Wenn du in der config Datei ganz normale Zuweisungen stehen hast, dann kannst du das mit machen.
Code: Select all
. config-datei
oder
source config-datei-
ravensmetaller
- Posts: 68
- Joined: 2003-08-05 20:27
Re: shell-script Frage / datei includieren
kewl, werd ich gleich ma ausprobieren
*man dankt*
*man dankt*
Re: shell-script Frage / datei includieren
Nö: man bashRavensMetaller wrote:*man dankt*
SCNR
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
-
ravensmetaller
- Posts: 68
- Joined: 2003-08-05 20:27
