Operating System - HP-UX
1846076 Members
3410 Online
110253 Solutions
New Discussion

How to copy the CDE calendar?

 
SOLVED
Go to solution
Ruediger Steudte_1
New Member

How to copy the CDE calendar?

I have got a new HP-C3700 Workstation running with HPUX11i. I have to transfer my home directory to the new workstation. Which file do I have to copy to keep the data of my existing CDE calendar?

Ruediger
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: How to copy the CDE calendar?

Rather than answering your question directly, I'll direct you to the man page. Man dtcm and look under the FILES section. Hint: Look under /var/spool/calendar.
If it ain't broke, I can fix that.
Robert-Jan Goossens
Honored Contributor

Re: How to copy the CDE calendar?

Could you check if this file exists ?

/var/spool/calendar/callog.userid

Regards,
Robert-Jan
Ruediger Steudte_1
New Member

Re: How to copy the CDE calendar?

Thank you for your fast assistance.
The file â /var/spool/calendar/callog.useridâ exists, and I will copy this file to the new workstation.

Rue
Alex Glennie
Honored Contributor

Re: How to copy the CDE calendar?

Mmm just checked you could use dtcm_admin to create an archive ...

the only issue to watch out for with the earlier method is to watchout for the embedded hostname detailsin the users callog.username file
Rick Beldin
HPE Pro

Re: How to copy the CDE calendar?

dtcm_archive doesn't work, never did, was never completed, and will never be.

You'll need to edit the callog file for the new user and change all references to the old workstation name to the new one. The same goes for the userid if that has changed.

Best bet is to do something like this sed script (careful with line breaks in ITRC forum display):

#!/bin/sh
if [ $# = 3 ]
then
old_user=$1
new_user=$2
new_system=$3
sed 's/$old_user\@.*"/$new_user\@$new_system"/g' callog.$old_user >| callog.$new_user
else
echo "usage: $0 old_user new_user new_system"
fi
Necessary questions: Why? What? How? When?