<font size=1 color=#800080 face="sans-serif">----- Forwarded by Allan
Biggs/GB/CONT/DPT on 21/01/2017 16:48 -----</font>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:
</font><font size=1 face="sans-serif">Allan Biggs/GB/CONT/DPT</font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:
</font><font size=1 face="sans-serif">info-ingres-request@kettleriverconsulting.com,
openroad-users@googlegroups.com</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:
</font><font size=1 face="sans-serif">21/01/2017 16:36</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:
</font><font size=1 face="sans-serif">Overriding II_TIMEZONE_NAME
in a bash script running under crontab</font>
<br>
<hr noshade>
<br>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">on a Linux box I happen to want to <b>temporarily
change time zone</b> whilst running a crontab job.</font>
<br><font size=2 face="sans-serif">This script only gets called when the
parent script is running in crontab</font>
<br>
<br><font size=2 color=blue face="Courier New">. /home/ingres/.ingIIsh</font>
<br><font size=2 color=blue face="Courier New">echo "------------------"
</font>
<br><font size=2 color=blue face="Courier New">ingsetenv II_TIMEZONE_NAME
UNITED-KINGDOM</font>
<br><font size=2 color=blue face="Courier New">echo " in only_fromcrontab
$(date)" </font>
<br><font size=2 color=blue face="Courier New">ingprenv
</font>
<br><font size=2 color=blue face="Courier New">echo "------------------"
</font>
<br>
<br><font size=2 face="sans-serif">The script did not change </font><font size=2 face="Courier New">II_TIMEZONE_NAME</font><font size=2 face="sans-serif">
</font>
<br>
<br>
<br><font size=2 face="sans-serif">Although I don't want to do it I tried
</font>
<br>
<br><font size=2 color=blue face="Courier New">ingsetenv II_TIMEZONE_NAME
UNITED-KINGDOM </font><font size=2 face="sans-serif">interactively </font>
<br>
<br><font size=2 face="sans-serif">and got </font>
<br><font size=2 face="Courier New">ingsetenv: unable to set variable "II_TIMEZONE_NAME"</font>
<br><font size=2 face="Courier New"> E_CL1405_NM_STOPN
NM[sg]tIngAt: Unable to open symbol table</font>
<br><font size=2 face="Courier New"> only the
Ingres super-user can use ingsetenv</font>
<br>
<br><font size=2 face="sans-serif">Clearly the bash script is failing in
the same way.</font>
<br>
<br><font size=2 face="sans-serif">Is there a way of temporarily
overriding the time zone in a script which doesn't require super-user privileges?</font>
<br>
<br><font size=2 face="sans-serif">thanks </font>
<br><font size=2 face="sans-serif">Allan </font><p><br>
This communication is for use by the intended recipient and contains<br>
information that may be Privileged, confidential or copyrighted under<br>
applicable law. If you are not the intended recipient, you are hereby<br>
formally notified that any use, copying or distribution of this e-mail,<br>
in whole or in part, is strictly prohibited. Please notify the sender by<br>
return e-mail and delete this e-mail from your system. Unless explicitly<br>
and conspicuously designated as "E-Contract Intended", this e-mail does<br>
not constitute a contract offer, a contract amendment, or an acceptance<br>
of a contract offer. This e-mail does not constitute a consent to the<br>
use of sender's contact information for direct marketing purposes or for<br>
transfers of data to third parties.</p>
<p>Francais Deutsch Italiano Espanol Portugues Japanese Chinese Korean</p>
<p> http://www.DuPont.com/corp/email_disclaimer.html</p>