TOP
SSV SOFTWARE SYSTEMS REGISTER  REGISTER
Log in to check your private messages  Log in to check your private messages
START FAQ SEARCH MITGLIEDER PROFILE  Log in 
SSV-Forum
Setzen von Umgebungsvariablen in autostart.sh

 
Post new topic   Reply to topic    SSV-Forum Forum Index >>> DNP/9200
<<< Previous topic - Next topic >>>  
Display posts from previous:   
Author Message
Bernie



Joined: 18 Apr 2007
Posts: 8

PostPosted: 19.04.2007, 12:33    Post subject: Setzen von Umgebungsvariablen in autostart.sh Reply with quote

Hallo Leute!

Ich arbeite seit kurzem mit dem DNP9200 mit originalem Linux Kernel 2.4.

Ich habe unter Anderem folgendes Codefragment in autostart.sh:
Code:
export LD_LIBRARY_PATH=/root/lib:$LD_LIBRARY_PATH
echo $LD_LIBRARY_PATH

Auf der Konsole wird dann wie erwartet der ergänzte Variableninhalt angezeigt. Wenn ich danach nun set eingebe zeigt die Variable wieder den ursprünglichen Wert. Das gleiche Verhalten zeigt sich wenn ich den script manuell von der Konsole aufrufe.

Nach meinem Verständnis wird mittels export die Variable global definiert/geändert. Hier aber ist die Änderung immer nur gültig solange sich der Kontext innerhalb des Scripts befindet.

Wer weiß hier Rat?

Dank im Voraus für eure Hilfe!

Bernhard
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SSV-Forum Forum Index >>> DNP/9200 All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

SSV SOFTWARE SYSTEMS

Dünenweg 5
30419 Hannover

Fon: +49(0)511  ·  40 000-0
Fax: +49(0)511  ·  40 000-40

sales@ssv-embedded.de


Impressum    ·    Datenschutz    ·    AGB

© 2024 SSV SOFTWARE SYSTEMS GmbH. Alle Rechte vorbehalten.

ISO 9001:2015