File: unix_telnet.3

package info (click to toggle)
erlang-manpages 1%3A12.b.3-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,188 kB
  • ctags: 2
  • sloc: makefile: 68; perl: 30; sh: 15
file content (36 lines) | stat: -rw-r--r-- 1,026 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
.TH unix_telnet 3 "common_test  1.3.2" "Ericsson AB" "ERLANG MODULE DEFINITION"
.SH MODULE
unix_telnet \- Callback module for ct_telnet for talking telnet to a unix host\&.
.SH DESCRIPTION
.LP
Callback module for ct_telnet for talking telnet to a unix host\&.
.LP
It requires the following entry in the config file:

.nf
   {unix,[{telnet,HostNameOrIpAddress},
          {port,PortNum},
          {username,UserName},
          {password,Password}]}\&.
   
.fi
.LP
To talk telnet to the host specified by \fIHostNameOrIpAddress\fR, use the interface functions in \fIct\fR, e\&.g\&. \fIopen(Name), cmd(Name, Cmd), \&.\&.\&.\fR\&.
.LP
\fIName\fR is the name you allocated to the unix host in your \fIrequire\fR statement\&. E\&.g\&.

.nf
   suite() -> [{require,Name,{unix,[telnet,username,password]}}]\&.
.fi
.LP
or

.nf
   ct:require(Name,{unix,[telnet,username,password]})\&.
.fi
.LP
Note that the \fI{port, PortNum}\fR tuple is optional and if omitted, default telnet port 23 will be used\&.

.SH SEE ALSO
.LP
ct, ct_telnet