getting variable from script

Hi there
I'm absolutly new in this and i'm very confused allready.
I need to run a script from .profile , wich has no problem and when i return to .profile (this script runs from the middle of the .profile), i need to get a variable set on the scipt file.
I have puted this line in the end of the script :

export LOGT

and this is the value i need to get when returning to .profile.

How can i do this?

Your script is a seperate process launched by your .profile. When it exits, its environment goes away, including the exported variable. A child process cannot change the environment of its parent.

Try this...
instead of
script
do this
. script

A dot script runs in the same process.