- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to define crontab time zone
Operating System - HP-UX
1819804
Members
2919
Online
109607
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2005 01:26 AM
тАО11-23-2005 01:26 AM
How to define crontab time zone
Hi,
The time zone crontab is different than other users as root.
Does anyone know how to set up the tz?
Thank you,
Joan
The time zone crontab is different than other users as root.
Does anyone know how to set up the tz?
Thank you,
Joan
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2005 01:30 AM
тАО11-23-2005 01:30 AM
Re: How to define crontab time zone
Shalom Joan,
Time zone is a variable set on the system in a file.
All you need to do is make sure the TZ variable is set in the script that is run by cron and anything that is time zone sensitive will work properly.
SEP
Time zone is a variable set on the system in a file.
All you need to do is make sure the TZ variable is set in the script that is run by cron and anything that is time zone sensitive will work properly.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2005 01:31 AM
тАО11-23-2005 01:31 AM
Re: How to define crontab time zone
Hi
cron daemon starts before your /etc/TZ is read
so in cronscript add
export TZ=what you want
example
set|grep TZ
TZ=MET-1METDST
thus
export TZ=TZ=MET-1METDST
Steve Steel
cron daemon starts before your /etc/TZ is read
so in cronscript add
export TZ=what you want
example
set|grep TZ
TZ=MET-1METDST
thus
export TZ=TZ=MET-1METDST
Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2005 01:34 AM
тАО11-23-2005 01:34 AM
Re: How to define crontab time zone
Hi Joan:
The correct timezone for a server is standardly setup in '/etc/TIMEZONE' which is sourced (read) by '/etc/profile' to propagate the 'TZ' environmental varible into the shell's environment during login.
Any user has the ability to set his/her own TZ value and export it.
You can modify '/etc/TIMEZONE' or you can run :
# /sbin/set_parms timezone
...to "fix" it. You can then restart 'cron' by donng:
# /sbin/init.d/cron stop
# /sbin/init.d/cron start
Regards!
...JRF...
The correct timezone for a server is standardly setup in '/etc/TIMEZONE' which is sourced (read) by '/etc/profile' to propagate the 'TZ' environmental varible into the shell's environment during login.
Any user has the ability to set his/her own TZ value and export it.
You can modify '/etc/TIMEZONE' or you can run :
# /sbin/set_parms timezone
...to "fix" it. You can then restart 'cron' by donng:
# /sbin/init.d/cron stop
# /sbin/init.d/cron start
Regards!
...JRF...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP