I'd need to set timezones of individual processes started on a linux box. I tried setting TZ variable (in the local context), but it didn't work.
Is there a way of running an app from a command line with a different system date to the system one? It might sound stupid, but I need a kind of a sandbox where the system date would be changed.
Starting a virtual box is not an option ;)
相关问题
- Is shmid returned by shmget() unique across proces
- how to get running process information in java?
- Display time in local timezone when querying Influ
- Error building gcc 4.8.3 from source: libstdc++.so
- Why should we check WIFEXITED after wait in order
Which program do you use? Setting TZ works here:
Maybe you forgot to "export"?
You might want to try something similar to dateshift or libfaketime, both of which let you run a program with offset time.