File: asmodem.man

package info (click to toggle)
asmodem 0.60-11
  • links: PTS
  • area: main
  • in suites: woody
  • size: 92 kB
  • ctags: 57
  • sloc: ansic: 427; makefile: 48
file content (105 lines) | stat: -rw-r--r-- 3,168 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
.TH asmodem 0.4 "15 Sept 1996" asmail
.UC
.SH NAME
\fBasmodem\fP \- AfterStep Modem
.SH SYNOPSIS
.B asmodem
        [-h] [-s]
        [-p \fI[+|-]x[+|-]y\fP]
        [-u \fIsec\fP]
        [-m \fImodem lockfile\fP]
        [-h \fIprogram\fP]
        [-r \fIprogram\fP]
	[-d \fIprogram\fP]
.SH DESCRIPTION
\fBAsmodem\fP is a nifty application that lets you keep track of modem status.
It is designed to work with the AfterStep window manager (Rock on Frank & Dan!).
It is about 70% based on asmail written by Per Liden.  I spliced it up to
keep track of my modem lock file, and dial and hang up for me.
.SH CONFIGURATION OPTIONS
.IP "-h"
.RS
Prints a help message
.RE
.IP "-s"
.RS
Starts \fBasmodem\fP with a shaped window. This will remove the groundplate from the mailbox icon. Useful if your would like to place \fBasmodem\fP in your Wharf.
.RE
.IP "-m <lock file>"
.RS
This must be your modem lock file.  On my system this is /var/lock/LCK..cua1
If you choose to ignore this tiny requirement, asmail defaults to /var/lock/LCK..modem, which is
/dev/modem.
.RE
.IP "-u <sec> "
.RS
Specifies the update frequency. Default is 5 seconds.
.RE
.RE
.IP "-p [+|-]x[+|-]y "
.RS
Specifies the position of the \fBasmodem\fP-window.
.RE
.IP "-d <program>"
.RS
Specifies the program to execute when mouseclick is invoked on the \fBasmail\fP-window.
This is the app that executes when you are currently disconnected (Lights are Red!)
I use it to dial.
.RE
.IP "-r <program>"
.RS
Specifies the program to execute on when the modem detects that it has disconnected.
I have it play an .au file.  You could also have it redial if you have a permanent
connection.
.RE
.IP "-h <program>"
.RS
Executes <program> when you click on \fBasmail\fP, and you are dialed out.  A good way to
hang up.
.SH EXAMPLES
Here is an example of how to start \fBasmodem\fP from the command line. It will operate on
/dev/cua1 (Com2).

.nf

asmodem -m /var/lock/LCK..cua1 &
.fi

Here is an example of \fBasmodem\fP with the works.  This version will use execute ppp-on
when you click on asmodem when you're disconnected.  It also executes ppp-on when you
disconnect (permanent connection!).  If you click while asmail is connected, it executes
ppp-off.
.nf

asmodem -m /var/lock/LCK..cua1 -r ppp-on
.fi

Here is an example of how to start \fBasmodem\fP from \fBafterstep\fP. It uses the default modem (/dev/modem) and shaped extension.
This example executes ppp-on if you click on it while disconnected, ppp-off if you click
on it while connected, and plays a nice sound if you drop carrier.
Place the following line in your \fI.steprc\fP file in your home directory.
.nf

*Wharf - - Swallow "asmodem" asmodem -s -r "cp /home/malda/sounds/crash.au /dev/audio" -h /usr/spin/ppp-off -d /usr/spin/ppp-on &


.fi
.SH COPYRIGHT
All suspiciously modem like modifications are Copyright(c)
1996 by Rob Malda.  No guarantees and all that jazz.
Asmodem is available under the GPL.

Asmodem is based almost entirely on asmail,
Copyright (c) 1996 by Per Liden.

.SH AUTHOR
asmodem:Rob Malda
asmail:Per Liden
.RE
malda@cs.hope.edu
.RE
asmodem: http://www.cs.hope.edu/~malda/
.RE
asmail:http://www.rby.hk-r.se/~pt95pli/