Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to invoke environment

Status
Not open for further replies.

samkal

Technical User
Jun 24, 2008
41
US
I am tryying to ssh remote machine from a script to run a program for a particular user but it is not bringing up the user environment on remote machine. I was wondering if some one tell me how to do it.

Thanks
 
ssh joe@192.168.10.101 "/home/joe/bin/runthis"

"runthis" is the script. build your environment variables in the script "runthis"



A great teacher, does not provide answers, but methods to teach others "How and where to find the answers"

bsh

37 years Bell, AT&T, Lucent, Avaya
Tier 3 for 27 years and counting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top