General TC > Programming & Scripting - Unofficial
Updating TZ through script
curaga:
No, you cannot change vars in the parent. The usual solution for user-env vars is to set them in the login scripts, and if they need changing, log out and back in.
Mypresus:
Thank you Curaga you have confirmed what i was thinking with parent child but was looking for a solution. I think I may have found a work around chance/create the etc/timezone file as per Rich suggestion then activate the date command which uses etc/timezone and should then sets the TZ variable. I will test and confirm the results.
Mypresus:
:'( Didnt work logout login is required for using timezone and date. You where correct Curaga. Doesn't look like it is possible to update TZ in a script.
Navigation
[0] Message Index
[*] Previous page
Go to full version