read a path

Hi I'm trying to write a script in which,if i log onto a particular server,the script should automatically find the server i'm on (which is the source server).We can find it frm the path /transfer/common/utilities/env_params.txt

please help me as to how start with this,shall i use the read cmmnd or any ideas...................pls urgent help needed

why don't you try doing

echo $lHOSTNAME

. It will give you the servername to which you have logged on.

Hi Kamitsin
thnks for the reply,but what i was looking for was, i need to write a script in which if any other user runs that script,the script must automatically read the /transfer/common/env_params.txt and output the source/host the user is logged on.The host info is on /transfer/common/env_params.txt

What is this homework?

Just put echo $hostname in .profile

no its not,am trying to find a way where a script, when placed on any server detects the name of the server when the user runs the script and terms it as the host server.