![]() ![]() You may choose one of six different protocols to use for the ping. A ping object is first created with optional parameters, a variable number of hosts may be pinged multiple times and then the connection is closed. This module contains methods to test the reachability of remote hosts on a network. Print "$host is alive.\n" if pingecho($host) #DESCRIPTION Printf("$host is alive (packet return time: %.2f ms)\n", # High precision syntax (requires Time::HiRes) Print "HOST: $host ACKed in $rtt seconds.\n" $p->port_number(getservbyname("http", "tcp")) Print "$host not reachable ", scalar(localtime()), "\n" $p->port_number(scalar(getservbyname("http", "tcp"))) # Try connecting to the www port instead of the echo port Print "$ip is alive.\n" if $p->ping($ip) $p->bind($my_addr) # Specify source interface of pings Print "$host is alive.\n" if $p->ping($host) Net::Ping - check a remote host for reachability #SYNOPSIS use Net::Ping When you open a fifo, the program will block until there's somethingįor example, let's say you'd like to have your. Running out of stack space, or hitting file size limit.įor example, to trap an interrupt signal, set up a handler like this: sub catch_zap Ī fifo is convenient when you want to connect a process to an unrelated Special events transpire, like a child process exiting, your process Particular keyboard sequence like control-C or control-Z, sent to youįrom another process, or triggered automatically by the kernel when A signal may be generated intentionally from a ![]() These handlers willīe called with an argument which is the name of the signal that Or references of user-installed signal handlers. Perl uses a simple signal handling model: the %SIG hash contains names Each is used in slightly different situations. Signals, named pipes, pipe opens, the Berkeley socket routines, and SysV The basic IPC facilities of Perl are built out of the good old Unix Perlipc - Perl interprocess communication (signals, fifos, pipes, safe subprocesses, sockets, and semaphores) DESCRIPTION Bidirectional Communication with Yourself.Bidirectional Communication with Another Process. ![]() Complete Dissociation of Child from Parent. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |