Article View: comp.unix
Article #380CSH,getenv,OPENLOOK???????
From: ACPS2924
Date: Tue, 02 Apr 1991 18:22
Date: Tue, 02 Apr 1991 18:22
21 lines
1293 bytes
1293 bytes
This is my question.
We are running OPENLOOK on sparcstation 1's.
The question concerns the csh.
I have set up a variable called MOTD,the location of the message of the day
file for a utility in OPEN.
If in the cmdtool i echo $MOTD it finds it.
If however i use getenv in a C program to get MOTD it fails.....
I know you have to export it in sh but what do you have to do to set it
up in the csh.
The variable is set up in the .cshrc file.
Any suggestions would be most helpfull....
Peter
+----------------------------------------------------------------------+
acps2924@ryerson.ca ! Who is the ! If plumbers designed toilets like
advisor1@ryerson.ca ! user,pray, ! software professionals design tools,
! and who is ! we'd be up to our knees in crap.
! the used ? ! - Charles A. Rovira
+----------------------------------------------------------------------+
Technical Details
Message-ID:
<4765@gumby.Altos.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!altos!gumby!clpShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!altos!gumby!clp From: ACPS2924@Ryerson.Ca Newsgroups: comp.unix Subject: CSH,getenv,OPENLOOK??????? Message-ID: <4765@gumby.Altos.COM> Date: 2 Apr 91 18:22:14 GMT Sender: clp@gumby.Altos.COM Organization: Ryerson - Academic Computing Services Lines: 21 Approved: clp@altos.com