The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
newbie problem blowFish@ubuntu High Level Programming 5 06-26-2007 07:59 PM
Problem accessing csh ?? (Newbie) gmalt Shell Programming and Scripting 3 01-05-2007 04:08 AM
newbie problem mpang_ Shell Programming and Scripting 2 06-17-2006 03:45 AM
PerfMeter problem(a newbie one) Zarnick SUN Solaris 2 05-27-2004 01:34 PM
newbie problem please help Thump UNIX for Dummies Questions & Answers 2 02-20-2001 11:02 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-09-2006
alien12 alien12 is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 4
newbie problem with enviroment

Hi I've written a a script on box A that ssh's into box B and runs another script. If I run the script on box B it works. However when I run my ssh script (public key setup so no passwd required) it fails with "The WSB_HOME environment variable is not defined". Checked wapuser1 .profile on box B and all seems ok. I'm sure there is a simple explanation for this but setting up enviroment variables was never my strong point.

Scripts as follows.

#!/bin/sh

for pped in 03 04 05 06
do
ssh -l wapuser1 auumpp0pr$pped /home/wapuser1/scripts/wsb_start
done


Thnxs in advance.
  #2 (permalink)  
Old 02-10-2006
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
In "/home/wapuser1/scripts/wsb_start " add a line to run your .profile such as
. /some-home-directory/.profile

Important to use the leading .[space] to insure the environment variables get set in the parent.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:30 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0