- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to set time backwards using scripts
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-29-2002 06:59 PM
07-29-2002 06:59 PM
I'm a DBA .... my application requirements are that every friday night i've to load the Development and Test databases with the PRODuction data ... all three databases reside in three different servers ... after loading the databases before restarting the database i need to set the system date to April 01, 2002 ... this is our business requirement to evaluate the application ....
I had automated the shutdown of databases, taking cold backup of PROD, ftp the files across the servers and recreate the development & test databases using create control file option using scripts ....
i created a cron entry to do this and activate it on every friday when my application team wants to have new set of data ...
My question is how to set the system date to april 01, 2002 thru scripts ....
i tried 'date 040104002002' as example ... but since i'm setting it backwards it asks for confirmation 'YES' from me .... how do i pass the 'yes' into my script which sets the date backwards ?????
thanks in advance
-bala-
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 07:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 07:38 PM
07-29-2002 07:38 PM
Re: how to set time backwards using scripts
#script
date 040104002002 <
END
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 08:03 PM
07-29-2002 08:03 PM
Re: how to set time backwards using scripts
Thanks for your fast response ....
i created a script with :
date 0401`date +%H%M` <
EOF
and it works... i use the inner date command to preserve the time ....
I've lot of jobs running using crontab, such as daily cold backup of database, clearing log files, pinning objects into oracle SGA, etc.
Will this change in date affect my crontab entries from running ???
cheers
-bala-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 08:29 PM
07-29-2002 08:29 PM
Re: how to set time backwards using scripts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2002 10:25 PM
07-30-2002 10:25 PM