[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coldsync-hackers] HotSync on pressing HotSync button on Visor



On Sat, Jul 07, 2001 at 03:36:31PM +0200, Ingo Oeser wrote:
> I would like to generalize this for more than one user, but I
> found no way to select the right local user (and su to him and
> chdir into his home directory) using a visor and coldsync, so I
> harcoded these into the script.

	This sounds a bit like FreeBSD's 'usbd', which runs commands
when USB devices are inserted or removed. If so, you should be able to
use daemon mode with "-md".
	Try

	$CS_PATH/coldsync -s -t serial -md /dev/ttyUSB0

This will read the username and user ID from the Palm, look them up in
/usr/local/etc/palms, setuid() to the appropriate user, and sync. Your
/usr/local/etc/palms should look something like:

	# Hash in first column means comment
	# 
	# serial|username|userid|unixuser|palmname|config-file
	*Visor*|Ingo Oeser|1001|ioe

At first, you may want to use "-l /some/log/file -dsync:5 -dmisc:5"
instead of "-s" to make sure everything is working properly.

-- 
Andrew Arensburger                      This message *does* represent the
arensb@ooblick.com                      views of ooblick.com
	    kill -9, do not pass go, do not collect $200.
This message was sent through the coldsync-hackers mailing list.  To remove
yourself from this mailing list, send a message to majordomo@thedotin.net
with the words "unsubscribe coldsync-hackers" in the message body.  For more
information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.