Working on a probably fairly common task -> getting a jbc (jbasic)
program to run from a cron entry in Linux. This jbc program may call
several other (jbc) programs via the EXECUTE command.
Something that I'm noticing in the way I use PUTENV() is that PUTENV()
does not appear to recognize dollar signs? For example,
001 IF PUTENV("PATH=$JBCRELEASEDIR/bin:/data/development/bin:
$PATH") TH
002 IF GETENV("PATH", PATHOUT) THEN
003 CRT SQUOTE(PATHOUT)
004 END
005 END
Yields me: '$JBCRELEASEDIR/bin:/data/development/bin:$PATH'
Is it something incorrect with my PUTENV() syntax?
The reason I was using PUTENV() is so I can control environmental
variables from within each jbc program. Is it true that EXECUTE will
spawn a new shell session for each call? I'm trying to come up with
the best way to share these environmental variables across all called
programs.
Misc Info (just in case):
OS --> RHEL 4
jBASE 3.4.10
--~--~---------~--~----~------------~-------~--~----~
Please read the posting guidelines at:
http://groups.google.com/group/jBASE/web/Posting%20Guidelines
IMPORTANT: Type T24: at the start of the subject line for questions specific to
Globus/T24
To post, send email to [email protected]
To unsubscribe, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
-~----------~----~----~----~------~----~------~--~---