Rechercher une page de manuel
unix_telnet.3erl
Langue: en
Version: 297838 (debian - 07/07/09)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
unix_telnet - Callback module for ct_telnet for talking telnet to a unix host.DESCRIPTION
Callback module for ct_telnet for talking telnet to a unix host.
It requires the following entry in the config file:
{unix,[{telnet,HostNameOrIpAddress}, {port,PortNum}, {username,UserName}, {password,Password}]}.
To talk telnet to the host specified by HostNameOrIpAddress, use the interface functions in ct, e.g. open(Name), cmd(Name, Cmd), ....
Name is the name you allocated to the unix host in your require statement. E.g.
suite() -> [{require,Name,{unix,[telnet,username,password]}}].
or
ct:require(Name,{unix,[telnet,username,password]}).
Note that the {port, PortNum} tuple is optional and if omitted, default telnet port 23 will be used.
SEE ALSO
ct, ct_telnet
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre