I have jpilot 1.8.2 installed to Ubuntu Bionic 18.04 LTS. Also installed were all the additional supporting software requirements listed at the jpilot.org website.
I no longer use any Palm handhehld hardware (no current requirement to Hotsync devices) but need to access two sets of Palm Desktop address, calendar, memo, etc PIM info created and stored using two separate devices some years ago.
Data was exported from Palm Desktop v4.1.4 running on WinXP. Dataset1 was subsequently imported into jpilot 1.8.2 on my Ubuntu system via its GUI. The import happened with a few data errors, but I haven't yet noticed any glaring omissions or corruption, the result appears to be acceptable.
Jpilot documentation gives a method to enable access to another set (or multiple sets) of Palm PIM data under the same Linux user via a shell script. Here is the method:
Quote:
Environment variables
J-Pilot uses the JPILOT_HOME environment variable to make it easy to allow multiple pilots to be synced under the same unix user. Just set JPILOT_HOME to the directory you want jpilot to use. For example, I have 2 palm pilots. I can sync the one I use all the time into /home/judd. The other one I can sync into /home/judd/palm2 by using this script:
Code:
#!/bin/bash
JPILOT_HOME=/home/judd/palm2
jpilot
|
Despite my efforts I could not get this to work.
Here is what I tried...
1. Open an instance of terminal and run nano script editor.
2. Create the following script:
Code:
#!/bin/bash
JPILOT_HOME=/home/username/.JJJpalm
jpilot
3. Saved script from nano with Ctrl+X to /home/username directory. The script file was named "AAAjpilot.sh".
4. Directory /home/username/.JJJpalm was created - where I intended to store the second set of Palm PIM data. Directory was empty.
5. File permissions of script were changed thus:
Code:
$ ls -l AAAjpilot.sh
(above to view and confirm existing file permissions)
$ sudo chmod 774 AAAjpilot.sh
(above to change file permissions to allow script to be executed)
When Dataset1 was imported to jpilot the program stored its data in the directory /home/username/.jpilot . The shell script is intended, I think, to force jpilot to use the directory detailed in the script. However, when I ran the script it did not access or create new empty database files in the .JJJpalm directory I had created for Dataset2. It instead accessed the directory .jpilot to which Dataset1 had been imported.
I'm new to Linux so don't know what went wrong here.
I killed jpilot and renamed the directory /home/username/.jpilot to /home/username/.jpilot_dataset1 . Launching jpilot after that caused it to create a new /home/username/.jpilot directory containing all the necessary files ready to import Palm data files into. I imported Dataset2 successfully into this new .jpilot directory.
Although it is now possible for me to access each of the two imported datasets by going into the /home/username directory and temporarily renaming the .jpilot (.jpilot_dataset2) and .jpilot_dataset1 directories I would prefer a neater, quicker, more direct and more convenient way of getting there.
Advice to get jpilot's environment variable working via shell script would be appreciated.