- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Migrate cron tab from TRU64 to HP UX 11.23 i
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
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
12-12-2007 08:42 PM
12-12-2007 08:42 PM
Migrate cron tab from TRU64 to HP UX 11.23 i
We wanted to migrate our cron jobs from TRU64 to HPUX 11.23i. Can I copy the crontabs folder to the new server? appreciate you could advice us the best way to migrate these cron jobs.
# /var/spool/cron/crontabs
Hope to hear from you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2007 08:50 PM
12-12-2007 08:50 PM
Re: Migrate cron tab from TRU64 to HP UX 11.23 i
crontab -u user1 -l > /tmp/user1.crontab
crontab -u user2 -l > /tmp/user2.crontab
Then using tar, rcp, ssh, ftp, ... tranfer the /tmp/*.crontab files from the source machine to the target machine.
Finally, read in the crontab files for each user.
crontab -u user1 < /tmp/user1.crontab
crontab -u user2 < /tmp/user2.crontab
Simply copying the cron directory tree will not suffice because you have to force the cron daemon to actually read those files. The "crontab -u user1 < /tmp/user1.crontab" command actually does two things: 1) It reads the input into the cron tables 2) It sends a SIGHUP to the cron daemon to instruct the daemon to reread the configuration files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2007 08:55 PM
12-12-2007 08:55 PM
Re: Migrate cron tab from TRU64 to HP UX 11.23 i
Just copy the crontab files(root,oracle etc etc from /var/spool/cron/ directory) because crontab format is same and let HP-UX do its job.Its better to restart cron after copying.
Hope this help!!!
BR,
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2007 09:26 PM
12-12-2007 09:26 PM
Re: Migrate cron tab from TRU64 to HP UX 11.23 i
I'm not sure about -u for Tru64 but the HP-UX syntax is: su user1 -c "crontab < /tmp/user1.crontab"
Only crontab -e -l -r support an optional user name:
crontab -e [username]
>It sends a SIGHUP to the cron daemon to instruct the daemon to reread the configuration files.
Would copying the folders and then using one crontab -e work??
Or just skip that and "kill -HUP cron-PID" be the easiest?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2007 09:50 PM
12-12-2007 09:50 PM
Re: Migrate cron tab from TRU64 to HP UX 11.23 i
Dennis I think it wont work because there are a lot of files
.proto..cronuucp
cronuucp
.proto..adm
.proto..sys
adm
sys
.new..cronuucp
.new..adm
.new..sys
.proto..root
root.rcm.bck
uucp -> ./cronuucp
.mrg..root
.new..root
which wont work with HP-UX !!!
>>>Or just skip that and "kill -HUP cron-PID" be the easiest?
This would be better because it would be similar to defining new crontabs for various users and forcing cron to reread the files.
BR,
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2007 06:10 PM
12-16-2007 06:10 PM
Re: Migrate cron tab from TRU64 to HP UX 11.23 i
Sorry for the late reply. I was away during the weekend
How to restart the cron after copying in the new server? is it something like the cron service?
If I issue the copy by issuing the crontab -l command, will it cause the cron jobs to be temporarily stop or anything in the old server?
Hope to hear from you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2007 07:01 PM
12-16-2007 07:01 PM
Re: Migrate cron tab from TRU64 to HP UX 11.23 i
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2008 11:07 PM
01-07-2008 11:07 PM
Re: Migrate cron tab from TRU64 to HP UX 11.23 i
once i migrated the cron jobs, how can i ensure it not activated yet as we need to finalised the cron jobs entry. once we confirmed, how can we start the cron jobs? is it by stop and start the cron job services.
looking forward for your awaiting reply.
promise of good points. tq
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2008 11:58 PM
01-07-2008 11:58 PM
Re: Migrate cron tab from TRU64 to HP UX 11.23 i
What do you mean by migrated? If you use the crontab command, the jobs will be executed.
If you meant you just copied the files into /var/spool/cron/crontabs, it won't be executed until you use crontab -e or the system is rebooted or cron restarted.
>how can we start the cron jobs?
You will need to do "crontab file" for each user. Or root can do what I mentioned above:
su user1 -c "crontab /tmp/user1.crontab"
>Clay: the "crontab < mycronfile" command also implicitly sends a SIGHUP to the cron
Actually it is a message in the FIFO /var/adm/cron/FIFO.