- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Change the date & time for current shell.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
07-23-2001 06:36 AM
07-23-2001 06:36 AM
Change the date & time for current shell.
I am unable to reverse time by 24 hrs in my current shell ( ksh - HP-UX 11.00) . I can forward it though , by 24 hrs.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2001 06:45 AM
07-23-2001 06:45 AM
Re: Change the date & time for current shell.
What is the error message? Did you reboot the system after setting your time back.
#>set_parms date_time or use sam
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2001 06:50 AM
07-23-2001 06:50 AM
Re: Change the date & time for current shell.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2001 06:57 AM
07-23-2001 06:57 AM
Re: Change the date & time for current shell.
Which command do you use to change shell time?
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2001 06:59 AM
07-23-2001 06:59 AM
Re: Change the date & time for current shell.
I'm a little bit confused. Only root can use the date command to change the system date forwards, backwards, or sideways. Any user can use the date to display the date.
You may be talking about setting the TZ variable.
As root, if you change the date backwards, date should have prompted you if you really wanted to do this. Normally setting the date backwards is a bad thing since file timestamps can become dangerously invalid for determining things like is file a newer than file b.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2001 07:08 AM
07-23-2001 07:08 AM
Re: Change the date & time for current shell.
I need to test a script that is supposed to run at specific time. So as a non-root user, I am trying to play around with TZ variable so as to fire the script. This change of date & time is effective for my current shell only and has not effect whatsoever on the system time. And yes, my timezone is EST5EDT.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2001 08:14 AM
07-23-2001 08:14 AM
Re: Change the date & time for current shell.
Bear in mind that timezones greater than 12 West of Greenwich or 12 East of Greenwich have no meaning. Most UNIX implementations will allow a TZ of plus/minus 24 hours but no more than that. They typically do a mod 24. If you are trying to use cron I doubt you will have much success testing it this way.
Clay