autopilot1
Activates a given command when the pilot enters the cradle.
Usage
autopilot [-n
seconds]
-c
<command>
[-h]
[-p
port]
Overview
AutoPilot Monitors the DTR or RTS line of a serial port, by default, /dev/palm, waiting for it to go from LOW to HIGH, this is used to activate a command automaticaly to make sync'ing easier.
The option command parameter is the full path/file name of the application that should be run when .Bautopilot notices a palm in the cradle.
Example: autopilot -c 'pilot-mail -p /dev/palm'
Options
-
-n -
Normally
autopilotwill loop continuously, checking the status every 2 seconds by default, passing a -n 5 will check the port every 5 seconds for example.
-
-h -
Normally
autopilotcheck the DTR line, this is set when the palm is inserted into the cradle, passing -h will check the RTS line, which is set when the hotsync button is pressed.
-
-p port -
Specifies the port to check.
Bugs/limitations
autopilot only works with devices that support the TIOCMGET ioctl.
You need permission to read the device file.
The device file may be locked if other applications are using it.
Always make sure the application you have assigned with -c has finished running before inserting the palm pilot again, otherwise the -c application could lock on itself and not work correctly.
Not all applications will work correctly with -h.
Environment
If the PILOTRATE environment is set, the value of this will overwritte the default device name.
Releases
3 releases since Debian 3.0 (Woody); the text changed 1 time.