TIP: Click on subject to list as thread! ANSI
echo: synchronet
to: DIGITAL MAN
from: KK4QBN
date: 2018-02-18 17:38:00
subject: Re: Raspberry PI synchron

  Re: Re: Raspberry PI synchron
  By: Digital Man to KK4QBN on Sun Feb 18 2018 12:40:20

 >> echo $HELLO
 >> kk4qbn@kk4qbn:~$ md5sum hi.sh
 >> f7201385bdb7c523dade158d270014cc  hi.sh

 DM> And when you "source hi.sh", does it print "Hi!"?

Yes, Hope you cought my last message, everything is working correctly now.

 >> I am not.. I'm using it as an example along with the fact that I have
 >> to force the /sbbs/ctrl directory upon SCFG to get it to work
 >> correctly and have to do the same with jsexec.

 DM> Please be more specific.

Sorry, did in the message that I accidently aborted, when I mean force the ctrl
dir on jsexec or sbbsctrl I would have to either make a script that set the
sbbsctrl env variable before running or run ./scfg /sbbs/ctrl or cd into
/sbbs/ctrl and run ../exec/scfg  

but it works now.. no problems..

 DM> I don't think you understood my suggestion. My suggestion was to set
 DM> different environment variables (called them ENVTEST1, ENVTEST2, etc. or
 DM> whatever) in each method you know of to set an environment variable. e.g.
 DM> in your /etc/profile, add:

Yeah, I did'nt understand that.. but the variables are now set in
/etc/environment and nowhere else and I no longer have issues.. I had to take
them out of ~/.profile

 DM> Well it can be tricky given that processes (including scripts invoked as
 DM> executeables) get a *copy* of their parent script and any changes made are
 DM> that copy, which disappears when the process/script is finished. This is a
 DM> bit different from Windows, where batch/cmd files can set environment
 DM> variables in their parent environment without issue.

You've got that right.. you think it would be too damn simple to screw up..
leave it to me..

Thanks again Rob.

--

Tim Smith (KK4QBN)
KK4QBN BBS

---
 * Synchronet * KK4QBN BBS - kk4qbn.com - kk4qbn.synchro.net - Chatsworth GA
USA
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.