I just changed from windows NT to XP and I am no longer able
to connect to my unix system. I used to use hyper terminal -- which acts as dumb terminal to my main frame unix system. I think one of the options used to be "direct to comX". This option isn't listed now. I use a serial port and the... (2 Replies)
Dear All,
Now I use solaris 10 and I try to forward mail from /var/mail/username to their external mail so what should I do?
thank u in advance (2 Replies)
I am trying to automate a SSH login using Keys using the following command
ssh -i id_rsa usernamw@ipaddr.
I am successful in doing this and i am getting the Warning Screen and I logon successfully.
but when I am executing the command
tail -1cf put.dat | ssh -i id_rsa username@ipaddr > get.dat ... (1 Reply)
Hi,
I installed ubuntu recently on my pc. And I installed gnuplot as well.
When I first started working with gnuplot it was working . I did a plot and when I wanted to fit my data something happened and not the default terminal of gnuplot is xwt!
I changed it to: set terminal x11, but it... (0 Replies)
i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail.
actually i am trying to automate the high... (2 Replies)
When opening Terminal window under Mac OS Lion, I have a message saying I've got mail . It seems to be somewhere close to ~/Library/Server/Mail/Data/spool/ but I ignore what command to be typed in order to read it and suppress it later once read. (1 Reply)
Hi All! I would like your assistance with an issue that I have been having with OS X (Snow Leopard 10.6.8) and sending mail through the Terminal.
I had been trying to send mail from Terminal to my GMail account from my home, where I have a Verizon DSL Internet connection routed through a... (0 Replies)
I have been having an extremely annoying problem. For the record, I am relatively new at this. I've only been working with unix-based OS's for roughly two years, mostly Xubuntu and some Kali. I am pretty familiar with the BASH language, as that's the default shell for debian. Now, I've made this... (16 Replies)
Hello All,
I have a text file containing output from a command that contains lots of escape/control characters that when viewed using vi or view, looks like jibberish. But when viewed using the cat command the output is formatted properly.
Is there any way to take the output from the cat... (7 Replies)
I am having trouble getting mail to work on a red hat server. At first I was getting this message.
Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused
Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies
LEARN ABOUT LINUX
net_adm
net_adm(3erl) Erlang Module Definition net_adm(3erl)NAME
net_adm - Various Erlang Net Administration Routines
DESCRIPTION
This module contains various network utility functions.
EXPORTS
dns_hostname(Host) -> {ok, Name} | {error, Host}
Types Host = atom() | string()
Name = string()
Returns the official name of Host , or {error, Host} if no such name is found. See also inet(3erl) .
host_file() -> Hosts | {error, Reason}
Types Hosts = [Host]
Host = atom()
Reason = term()
Reads the .hosts.erlang file, see the section Files below. Returns the hosts in this file as a list, or returns {error, Reason} if
the file could not be read. See file(3erl) for possible values of Reason .
localhost() -> Name
Types Name = string()
Returns the name of the local host. If Erlang was started with the -name command line flag, Name is the fully qualified name.
names() -> {ok, [{Name, Port}]} | {error, Reason}
names(Host) -> {ok, [{Name, Port}]} | {error, Reason}
Types Name = string()
Port = int()
Reason = address | term()
Similar to epmd -names , see epmd(1) . Host defaults to the local host. Returns the names and associated port numbers of the Erlang
nodes that epmd at the specified host has registered.
Returns {error, address} if epmd is not running. See inet(3erl) for other possible values of Reason .
(arne@dunn)1> net_adm:names().
{ok,[{"arne",40262}]}
ping(Node) -> pong | pang
Types Node = node()
Tries to set up a connection to Node . Returns pang if it fails, or pong if it is successful.
world() -> [node()]
world(Arg) -> [node()]
Types Arg = silent | verbose
This function calls names(Host) for all hosts which are specified in the Erlang host file .hosts.erlang , collects the replies and
then evaluates ping(Node) on all those nodes. Returns the list of all nodes that were, successfully pinged.
Arg defaults to silent . If Arg == verbose , the function writes information about which nodes it is pinging to stdout.
This function can be useful when a node is started, and the names of the other nodes in the network are not initially known.
Failure: {error, Reason} if host_file() returns {error, Reason} .
world_list(Hosts) -> [node()]
world_list(Hosts, Arg) -> [node()]
Types Hosts = [Host]
Host = atom()
Arg = silent | verbose
As world/0,1 , but the hosts are given as argument instead of being read from .hosts.erlang .
FILES
The .hosts.erlang file consists of a number of host names written as Erlang terms. It is looked for in the current work directory, the
user's home directory, and $OTP_ROOT (the root directory of Erlang/OTP), in that order.
The format of the .hosts.erlang file must be one host name per line. The host names must be within quotes as shown in the following exam-
ple:
^ (new line)
Ericsson AB kernel 2.14.3 net_adm(3erl)