Unix environment issues


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Unix environment issues
# 1  
Old 03-15-2004
Unix environment issues

I'm having a problem with AIX 4.3.3 and I figured someone here might be able to help me.
I'm running a program 24/7 and I want to handle the day light savings issue without restarting the program since my users won't like it.
I don't have the option of setting the time for the DLS in advance, so I need to change the TZ (and basically tell the computer I'm somewhere else). Unfortunatly, once I change the TZ the application, which has already started needs to be restarted in order to get the new settings.
I'm using C and/or ada in this program and I figure there must be a way for me to request the environment setting again from within the aplication.
I'd appriciate any help I can get on this,
Eff
# 2  
Old 03-15-2004
unless you intend to reverse engineer the program and write your own code then recompile the application you are going to have to follow suit w/ it and restart the program.
# 3  
Old 03-15-2004
I figured as much and I was looking for a solution which might require some changes in the code. The only problem is that I haven't found out how to do that. I can save a TZ variable within the application. But this isn't the solution I was looking for. I thought there must be a way to use the TZ which is already defined in the UNIX OS.
# 4  
Old 03-15-2004
TZ is a shell environment setting.

since the program starts it initiates the TZ variable.

in a shell account if you change the TZ variable it is not effective untill you start a new shell instance.

you would need to put in some kinda code that checks an external file for the TZ variable so you can change it on a whim.
# 5  
Old 03-15-2004
Is there more to your problem than the switch to Daylight Savings Time? That much should already work with no further effort from you. It is just a matter of setting TZ to a value that implies such a switch.

How did your cron behave over the switch, Did you need to restart cron? I'm guessing that you didn't. All of your programs should work equally well.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Package release on UNIX environment

Hi, Can some one tell what is Package release on UNIX environment. Thanks, Nag (1 Reply)
Discussion started by: nag_sathi
1 Replies

2. UNIX for Dummies Questions & Answers

unix environment

Hi, Can anyone recommend a site where one can practise UNIX scripting . I don't have UNIX on my machine however I have heard there are some sites which let you log on to their servers for free. Thanks Rohit (2 Replies)
Discussion started by: rohitv
2 Replies

3. Programming

New to C Programming in UNIX environment

Hi all, I know the basics of C programming, but I dont know a single thing about how to write, compile and run C code in UNIX, also where liberaris are stored, how .headers files are being managed in unix, how to debug c code and what are the available GNU tools for c programming in linux env,... (6 Replies)
Discussion started by: patras
6 Replies

4. Shell Programming and Scripting

programming for unix environment

i have to make a menu based program to allow iusers to select the system information about their machine that they want. All i have been taught is how to enter commands at the command prompt like simple commands such as pwd and cd directory to change directory (not even sure if that is right). But... (1 Reply)
Discussion started by: carlvernon
1 Replies

5. Shell Programming and Scripting

Unix Environment Script

Hi, I was wondering what is the best way to write a centralized unix environment script. This script would set the application environment variables per specific environment. e.g. dev, qa, test or prod. We currenlty have 2 types of env files e.g. .envfile and set.env per environment. These... (4 Replies)
Discussion started by: acheepi
4 Replies

6. UNIX for Dummies Questions & Answers

unix develop environment

hi! i am Carlos i study @ UABC (Autonomy University of Baja California)... i have a final project.... i need to make a presentation of the new... unix develop environment... but... i have some problems with that.... could you tell me something to help me? (0 Replies)
Discussion started by: Nx GT-R
0 Replies

7. Post Here to Contact Site Administrators and Moderators

Java Programming in UNIX Environment

A suggetion: Don't we need to start Java Programming in UNIX Environment Forum ? (1 Reply)
Discussion started by: cub
1 Replies

8. UNIX for Dummies Questions & Answers

personalizing my unix environment

I share a login id/password with several folks so I don't like to change the .profile or other environment variables (e. g., set ignorecase in vi) that other users may expect to be set. Any suggestions to tailor my environment that will not affect other users (2 Replies)
Discussion started by: artjaniger
2 Replies

9. UNIX for Dummies Questions & Answers

MixWindows UNIX environment

I was wondering if anyone has had any experience in this area. The company that I work at is trying to bring a Windows 2000 server online and have the UNIX workstations and Clients connect to it like it is anothe UNIX box. They have been using Windows Services for UNIX to do this but are having... (1 Reply)
Discussion started by: kaikara1
1 Replies
Login or Register to Ask a Question

Featured Tech Videos