|
|
There is no default mailerCommand.
sprintf(buf, scanCommand, file, columns)
so a %s and %d respectively in scanCommand will generate the values of file and columns. The default scanCommand is
scan -file %s -width %d
This option may be useful to monitor logins (by checking update times of /etc/utmp), when using POP or other custom maildrop mechanisms, and so forth.
Similarly to scanCommand, the checkCommand is generated internally as
sprintf(buf, checkCommand, file, previous)
previous is the numeric value output by the last time checkCommand was run, or zero the first time. This is useful for allowing the checkCommand to maintain state in a primitive fashion. For instance, a checkCommand such as
compare_size %s %d
would "do the right thing" if compare_size were a script such as:
#!/bin/sh
NEWSIZE=`wc -c <$1`
echo $NEWSIZE
if [ $NEWSIZE -ne $2 ]; then
if [ $NEWSIZE -eq 0 ]; then
exit 2
else
exit 0
fi
fi
exit 1
The author of xlbiff uses this facility to keep track of several maildrops with one command. See the Bcheck and Bscan scripts, included.
The following standard X Toolkit command line arguments are commonly used with xlbiff:
*sound: /usr/demo/SOUND/play -v %d /usr/demo/SOUND/sounds/doorbell.au
The command is generated internally with sprintf, so the characters ``%d'' will be replaced with the numeric value of the volume resource.
The default translations are
<Button1Press>: popdown()
<Button3Press>: exit()
The led option does not work on Suns before SunOS 4.1/X11R5.
|
|
Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97