image
image

|


Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old September 20th, 2002, 08:34 AM
holmBrew's Avatar
Official Volunteer
 
Join Date: May 2001
Location: Utah, USA
Posts: 309
Thanks: 0
Thanked 0 Times in 0 Posts
holmBrew is on a distinguished road
TERM_PROGRAM: Undefined variable.

When I ssh into my box (since the 10.2.x upgrade) I get the following message upon login:


Last login: Wed Sep 18 15:08:57 2002
Welcome to Darwin!
TERM_PROGRAM: Undefined variable.


And...my PATH ends up being this:

PATH=/bin:/sbin:/usr/bin:/usr/sbin

instead of what it normally is...this:

PATH=~/bin/powerpc-apple-darwin:/Users/username/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin

Can somebody help me with this? I don't really care about the message: TERM_PROGRAM: Undefined variable., but I can't help thinking that the two may be related.
__________________
holmBrew

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Great Web Hosting: www.elfon.com
PowerBook(Prismo) 400Mhz G3
266Mhz G3 MT Gossamar
400Mhz G3 Yosemite
800Mhz G4 Quicksilver (my work box)
All running Mac OS X 10.2.4
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Reply With Quote
  #2  
Old September 20th, 2002, 10:18 AM
Captain Code's Avatar
Moderator
 
Join Date: Aug 2001
Location: Ontario, Canada
Posts: 3,102
Thanks: 0
Thanked 0 Times in 0 Posts
Captain Code will become famous soon enough
You can edit the file /etc/csh.login to change your path.

FWIW, my path is /bin:/sbin:/usr/bin:/usr/sbin
and I don't get the same error as you.
__________________
MacBook Pro 2.16GHz Core2Duo 3GB RAM, G4 1.4GHz OSX Tiger 1.25GB RAM, Dual 2GHz G5 OSX Tiger 2GB RAM (freakin shweet)
Athlon 64 Windoze XP for school work (programming) 1GB RAM
dferns@macosx.com
Reply With Quote
  #3  
Old September 20th, 2002, 11:42 AM
holmBrew's Avatar
Official Volunteer
 
Join Date: May 2001
Location: Utah, USA
Posts: 309
Thanks: 0
Thanked 0 Times in 0 Posts
holmBrew is on a distinguished road
I guess my real problem is that I need to have those other paths available for remote sessions.

I need this PATH for remote sessions:

PATH=~/bin/powerpc-apple-darwin:/Users/username/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
__________________
holmBrew

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Great Web Hosting: www.elfon.com
PowerBook(Prismo) 400Mhz G3
266Mhz G3 MT Gossamar
400Mhz G3 Yosemite
800Mhz G4 Quicksilver (my work box)
All running Mac OS X 10.2.4
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Reply With Quote
  #4  
Old September 20th, 2002, 11:51 AM
Captain Code's Avatar
Moderator
 
Join Date: Aug 2001
Location: Ontario, Canada
Posts: 3,102
Thanks: 0
Thanked 0 Times in 0 Posts
Captain Code will become famous soon enough
Do you mean for remote SSH login? I login to my Mac with SSH all the time without problems. Even so, you can change your PATH to whatever you want by editing the /etc/csh.login file
__________________
MacBook Pro 2.16GHz Core2Duo 3GB RAM, G4 1.4GHz OSX Tiger 1.25GB RAM, Dual 2GHz G5 OSX Tiger 2GB RAM (freakin shweet)
Athlon 64 Windoze XP for school work (programming) 1GB RAM
dferns@macosx.com
Reply With Quote
  #5  
Old September 20th, 2002, 02:55 PM
holmBrew's Avatar
Official Volunteer
 
Join Date: May 2001
Location: Utah, USA
Posts: 309
Thanks: 0
Thanked 0 Times in 0 Posts
holmBrew is on a distinguished road
Some how I hosed the /etc/csh.cshrc, /etc/csh.login, and /etc/csh.logout

Those are fixed now. Still getting that funky TERM_PROGRAM: Undefined variable.

Thanks for the help.
__________________
holmBrew

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Great Web Hosting: www.elfon.com
PowerBook(Prismo) 400Mhz G3
266Mhz G3 MT Gossamar
400Mhz G3 Yosemite
800Mhz G4 Quicksilver (my work box)
All running Mac OS X 10.2.4
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Reply With Quote
  #6  
Old September 21st, 2002, 03:34 AM
gumse's Avatar
Member
 
Join Date: Mar 2001
Location: Sweden
Posts: 403
Thanks: 0
Thanked 0 Times in 0 Posts
gumse is on a distinguished road
I also get TERM_PROGRAM when i log on to all my 10.2 boxes.
__________________
G4 500 MP 1024 MB RAM
LaCie Electron 22" Display
OS X 10.3.9
iMacDV
MacMini
iSight
iPod + iPod Mini
Sony PC100E FireWire Cam
Static IP via a FreeBSD server/gateway
a lot of other Mac's running Macos 7.5 to 9.1 and NetBSD.
A Few Wintel's on the side (I only use them when I get paid by the hour)
Reply With Quote
  #7  
Old September 22nd, 2002, 12:36 PM
sao sao is offline
member
 
Join Date: Aug 2001
Location: Singapore
Posts: 176
Thanks: 0
Thanked 0 Times in 0 Posts
sao is on a distinguished road
holmBrew,

There is a typo in /usr/share/tcsh/examples/aliases. Change the line that says:

if ("$TERM_PROGRAM" == "Apple_Terminal") then

to:

if ("$?TERM_PROGRAM" == "Apple_Terminal") then


Cheers...
__________________
Somewhere, over the rainbow,
way up high...
Reply With Quote
  #8  
Old September 22nd, 2002, 09:08 PM
holmBrew's Avatar
Official Volunteer
 
Join Date: May 2001
Location: Utah, USA
Posts: 309
Thanks: 0
Thanked 0 Times in 0 Posts
holmBrew is on a distinguished road
what's the added '?' do?
__________________
holmBrew

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Great Web Hosting: www.elfon.com
PowerBook(Prismo) 400Mhz G3
266Mhz G3 MT Gossamar
400Mhz G3 Yosemite
800Mhz G4 Quicksilver (my work box)
All running Mac OS X 10.2.4
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Reply With Quote
Reply

Thread Tools

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
glib errors when compiling libIDL-0.6.8 kilowatt Software Programming & Web Scripting 3 January 10th, 2005 04:34 PM
Why does DVD2oneX 1.1.1 offer 'variable' ratio? d54321k Design & Media 0 September 16th, 2003 09:22 AM
Shell script to rip form variable names to a file? michaelsanford Bob's Place 2 November 15th, 2002 07:41 PM
troubles installing Perl modules with CPAN.pm yogi Mac OS X System & Mac Software 7 April 26th, 2002 11:38 AM
Errors compiling pthread (for mysql) on Mac OS X Server Someone Else Mac OS X System & Mac Software 0 June 12th, 2001 11:26 AM


All times are GMT -5. The time now is 12:50 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.