Net::Time(3pm) Perl Programmers Reference Guide Net::Time(3pm)NAME
Net::Time - time and daytime network client interface
SYNOPSIS
use Net::Time qw(inet_time inet_daytime);
print inet_time(); # use default host from Net::Config
print inet_time('localhost');
print inet_time('localhost', 'tcp');
print inet_daytime(); # use default host from Net::Config
print inet_daytime('localhost');
print inet_daytime('localhost', 'tcp');
DESCRIPTION
"Net::Time" provides subroutines that obtain the time on a remote machine.
inet_time ( [HOST [, PROTOCOL [, TIMEOUT]]])
Obtain the time on "HOST", or some default host if "HOST" is not given or not defined, using the protocol as defined in RFC868. The
optional argument "PROTOCOL" should define the protocol to use, either "tcp" or "udp". The result will be a time value in the same
units as returned by time() or undef upon failure.
inet_daytime ( [HOST [, PROTOCOL [, TIMEOUT]]])
Obtain the time on "HOST", or some default host if "HOST" is not given or not defined, using the protocol as defined in RFC867. The
optional argument "PROTOCOL" should define the protocol to use, either "tcp" or "udp". The result will be an ASCII string or undef upon
failure.
AUTHOR
Graham Barr <gbarr@pobox.com>
COPYRIGHT
Copyright (c) 1995-2004 Graham Barr. All rights reserved. This program is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
perl v5.16.3 2013-02-26 Net::Time(3pm)
Check Out this Related Man Page
Net::Time(3perl) Perl Programmers Reference Guide Net::Time(3perl)NAME
Net::Time - time and daytime network client interface
SYNOPSIS
use Net::Time qw(inet_time inet_daytime);
print inet_time(); # use default host from Net::Config
print inet_time('localhost');
print inet_time('localhost', 'tcp');
print inet_daytime(); # use default host from Net::Config
print inet_daytime('localhost');
print inet_daytime('localhost', 'tcp');
DESCRIPTION
"Net::Time" provides subroutines that obtain the time on a remote machine.
inet_time ( [HOST [, PROTOCOL [, TIMEOUT]]])
Obtain the time on "HOST", or some default host if "HOST" is not given or not defined, using the protocol as defined in RFC868. The
optional argument "PROTOCOL" should define the protocol to use, either "tcp" or "udp". The result will be a time value in the same
units as returned by time() or undef upon failure.
inet_daytime ( [HOST [, PROTOCOL [, TIMEOUT]]])
Obtain the time on "HOST", or some default host if "HOST" is not given or not defined, using the protocol as defined in RFC867. The
optional argument "PROTOCOL" should define the protocol to use, either "tcp" or "udp". The result will be an ASCII string or undef upon
failure.
AUTHOR
Graham Barr <gbarr@pobox.com>
COPYRIGHT
Copyright (c) 1995-2004 Graham Barr. All rights reserved. This program is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
perl v5.14.2 2010-12-30 Net::Time(3perl)
Hi guys,
thanks in advance for this easy answer.... :s
Ok I am trying to output the enviroment varable for host in Solaris. I have tried $HOST, $HOST_NAME, $HOSTNAME carn't find it anywhere, does someone want to put me out of my misary and tell me what it is??? :confused: :eek:
Thanks... (2 Replies)
Please help me out with one highlighted in RED
#!/bin/bash
STAGING_HOSTS="san man hand"
for HOST in $STAGING_HOSTS
do
ssh $HOST <<EOT
echo "CVServer is being stopped on $HOST "
pkill CVServer
sleep 20
echo "!!! Checking if CVServer is DOWN on $HOST !!!"
... (6 Replies)
I want to change the following lines in /etc/hosts on FreeBSD:
::1 localhost localhost.my.domain
127.0.0.1 localhost localhost.my.domain
into the following lines
::1 localhost foo.example.com
127.0.0.1 localhost foo.example.com
I have the following script to do... (5 Replies)
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.12.11.255)(PORT = 1540)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = CSMFIRE03)))
I would like to extract the CSMFIRE03.
I have no clue which command to use. Could... (5 Replies)
I do some try on one application to know how to fasten a application
root@localhost:/tmpfs> ./pbzip2 -p2 -f -k libc5.cvs.tar
Average Time:22.578 Min Time:22.542 Max Time:22.594
First: I need to say my setting:
using tmpfs: mount -t tmpfs -o size=200m,nr_inodes=10k,mode=777 tmpfs /tmpfs
... (2 Replies)
Hi experts,
I have a file with the following output
HOST = host1
SERVICE_NAME = service1
HOST = host2
SERVICE_NAME = service2
HOST = host3
SERVICE_NAME = service3
Need the output like this
host1;service1
host2;service2
host3;service3 (2 Replies)
My input is:
jdbc:Oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.147.109.211)(PORT=1526))(CONNECT_DAT A=(SID= MWDBD22)))
In the search pattern, ( and ) and . and @ are special RE, and need to be escaped \( and \) and \. and \@
how can i do it by script or command (9 Replies)
Linux Release
Uname details
Data file
Ive been at the command line for some time. Back as far as SCO and Interactive Unix. I have always used this construct without issues. I want to isolate the ip / field 1. As you can see .. the first line is "skipped".
This works as... (6 Replies)
Hi everybody,
Which Unix base OS have best performance for HOST virtualization?
I tested SmartOS but it needs another OS to connect remotely!
Thanks in advance. (11 Replies)