File: protocols

package info (click to toggle)
seyon 2.20c-32
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 1,424 kB
  • ctags: 2,013
  • sloc: ansic: 17,887; yacc: 184; sh: 183; makefile: 8
file content (62 lines) | stat: -rw-r--r-- 1,941 bytes parent folder | download | duplicates (9)
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
# this a ready-to-use example of the protocols file
# just move it to ~/.seyon, or whatever your Seyon's
# default directory is

# note that this file has nothing to with Zmodem auto-download.
# you have to use the resources 
# zmodemAutoDownload and
# zmodemAutoDownloadCommand for that.
# see the manual page for more details.

# the format is simple.

# the first field is the title (the name that appears in
# the file transfer console).
# the presence of this field is reuired.

# the second field is the command (if it starts with $, stdin
# and stdout will be redirected to the modem port.
# the presence of this field is reuired.

# the third field is whether that protocol requires 
# a file name argument (like in uploading, for instance).
# the presence of this field is reuired.

# you can put comments on a single line
# or at the end of a line
#
#regular_zmodem_dl    "$ cd /usr/dl; rz -vv" n # like in here
#
# blank lines are OK too, for readability.

# the title has to be either a single word, like the above
# or a collection of words, but quoted, like below.

# you put anything instead of y as long as it starts
# with y: y, Y, yes, yep ..etc.
#
#"regular zmodem ul"  "$ cd /usr/src; sz -vv" y
#
# anything that doesn't start with a y is a no
# e.g. n, N, NO, Not, nope, nien, nono ..etc.
# even hello, but the use of words that doesn't start
# with n is highly discouraged
#
#graphic_zmodem_dl    "cd /usr/dl; grz        No
#xrz3D                "$cd /usr/dl; xrz"      NO
#
# here is my own protocols file
# notice how I make it clear to myself
# whether I'm uploading or downloading
#
#"SEND - Zmodem" "$cd /usr/src; sz -vv" y
#"RECEIVE - Reg. Zmodem" "$cd /usr/dl; rz -vv"  n
#"RECEIVE - Xrz3D" "$cd /usr/dl; xrz" n

"Zmodem - RECEIVE"      "$lrz" n
"Ymodem - RECEIVE"      "$lrb" n
"Xmodem - RECEIVE"      "$lrx" y

"Zmodem - SEND"         "$lsz" y
"Ymodem - SEND"         "$lsb" y
"Xmodem - SEND"         "$lsx" y