[Thread Prev][Thread Next][Thread Index]
Re: sync'ing to UNIX & Win95 after restore
- To: pilotmgr@xxxxxxxxxxxxxxxxxxxxxxx, richard.smudin@Corp
- Subject: Re: sync'ing to UNIX & Win95 after restore
- From: Alan.Harder@Ebay (Alan Harder)
- Date: Wed, 24 Jun 1998 12:53:25 -0700
- Sender: owner-pilotmgr@moshpit
> Ever since I restored it from my workstation, I can't sync it to my
> PC. The error I get is that the name on the Pilot doesn't match the
> name in the PC.
Did you use PilotManager to restore from your backup? If so it should have
told you that the pilot (after resetting) was unlabelled and asked you for
your name.
If you have the pilot-link package you can use the install-user program to
label a pilot. Or a perl script like this should work:
#!/usr/local/bin/perl5
BEGIN
{
unshift(@INC,"/home/pilotmgr/lib/perl5",
"/home/pilotmgr/lib/perl5/sun4-solaris");
}
use PDA::Pilot;
$socket = PDA::Pilot::openPort("/dev/ttya");
$dlp = PDA::Pilot::accept($socket);
$userInfo = $dlp->getUserInfo();
$userInfo->{'name'} = "myname";
$dlp->setUserInfo($userInfo);
$dlp->close();
PDA::Pilot::close($socket);
1. replace top line with correct path to perl (can copy 1st line of
PilotMgr.pm)
2. replace /home/pilotmgr with correct path to pilotmgr installation
3. replace /dev/ttya with correct serial port device
4. replace "myname" with name you want
5. chmod a+x thisscript
6. ./thisscript
good luck,
- Alan
------------------------------------------------------------------------
***********************************************************
* This is a public mailing list! *
* Please do not publish Sun proprietary information here! *
* - - - - - - - - - - - - - - *
* http://www.moshpit.org/pilotmgr *
***********************************************************
|
|