Originally Posted by s_b
And all the data to the right of the colon shall be read read from the enviroment of my Linux box.
I think this is the relevant part of your homework: you have to become familiar with environment variables. The command set
gives you them all. Anyway, as H_TeXMeX_H pointed out a good tutorial should give all the answers, as well as your course notes and your teacher. Try to search the answers deep inside this chapter
of the Advanced Bash Scripting Guide.