Hi!
I have a script shell and I must do a calculation:
let c=7/4
echo $c => 1 :(
and me I want 1,75
Is it possible to find 1,75 in shell?
Thinks! (10 Replies)
I Use mkcd for save same directories into DVD, But the commande not complete succefuly
mkcd -r directorie_i_whish_save -d /dev/cd1
please it is very urgent
thank you :confused: :confused: (1 Reply)
I have a system that i want to reach via a vpn created vi a fierwall.The fierwall in an other system.
The ip i am trying to get to is 172.16.4.48
I need to get to it via the hme1 interface.
The vpn gateway has this ip 172.30.50.1
I need to clean up the routing table and make this work; or is it... (5 Replies)
Hi,
I want to create a new environment variable (JAVA_HOME), but when I open a new shell this varible is delete...
to create the variable I do :
export JAVA_HOME=/usr/java/jdk
and I verify with :
echo $JAVA_HOME
and it's work...
But When I open a new shell this variable is forget...
( It... (2 Replies)
hi
i'm trying to mount my usb device in fedora 7(vmware)
i use the comand:
mount /sda1 /mnt
but when i go to /mnt i find the content of the folder /boot.
can u tell me what's the problem? (2 Replies)
Bonjour,
J'ai ajouté par erreur à un sous mirroir des disques de cette facon :
metattach d53 c2t90d0s0 c2t90d1s0 ... alors que j'aurais du faire un stripe par disque (comme ça) :
metattach d53 c2t90d0s0
metattach d53 c2t90d1s0
..
Derriere, j'ai fais un growfs -M du FS pour l'aggrandir et... (1 Reply)
bonjour,
j'ai un serveur Linux ayant 2 interfaces eth0 et eth1. j'ai configuré deux adresses IP de deux réseaux différents sur les 2 interfaces, et je les ai connecté sur 2 commutateurs différents.
l'adresse IP de eth0 répond sans problème au ping des équipement de son réseau d'appartenance, malheureusement cela... (1 Reply)
Discussion started by: cerco
1 Replies
LEARN ABOUT DEBIAN
net::bonjour::entry
Net::Bonjour::Entry(3pm) User Contributed Perl Documentation Net::Bonjour::Entry(3pm)NAME
Net::Bonjour::Entry - Support module for mDNS service discovery (Apple's Bonjour)
SYNOPSIS
use Net::Bonjour;
my $res = Net::Bonjour->new(<service>[, <protocol>]); $res->discover;
foreach my $entry ( $res->entries ) { print $entry->name, "
"; }
DESCRIPTION
Net::Bonjour::Entry is a module used to manage entries returned by a mDNS service discovery (Apple's Bonjour). See Net::Bonjour for more
information.
METHODS
new([<fqdn>])
Creates a new Net::Bonjour::Entry object. The optional argument defines the fully qualifed domain name (FQDN) of the entry. Normal usage
of the Net::Bonjour module will not require the construction of Net::Bonjour::Entry objects, as they are automatically created during the
discovery process.
address
Returns the IP address of the entry.
all_attrs
Returns all the current attributes in the form of hashed array.
attribute(<attribute>)
Returns the specified attribute from the TXT record of the entry. TXT records are used to specify additional information, e.g. path for
http.
dnsrr([<record type>])
Returns an DNS answer packet of the entry. The output will be in the format of a Net::DNS::Packet object. The record type designates the
resource record to answer with, i.e. PTR, SRV, or TXT. The default is PTR.
fetch
Reloads the information for the entry via mDNS.
fqdn
Returns the fully qualifed domain name (FQDN) of entry. An example FQDN is server._afpovertcp._tcp.local
hostname
Returns the hostname of the server, e.g. 'server.local'.
name
Returns the name of the entry. In the case of the fqdn example, the name would be 'server'. This name may not be the hostname of the
server. For example, names for presence/tcp will be the name of the user and http/tcp will be title of the web resource.
port
Returns the TCP or UDP port of the entry.
sockaddr
Returns the binary socket address for the resource and can be used directly to bind() sockets.
EXAMPLES
Print out a list of local websites
print "<HTML><TITLE>Local Websites</TITLE>";
use Net::Bonjour;
my $res = Net::Bonjour->new('http');
$res->discover;
foreach my $entry ( $res->entries) {
printf "<A HREF='http://%s%s'>%s</A><BR>",
$entry->address, $entry->attribute('path'),
$entry->name;
}
print "</HTML>";
Find a service and connect to it
use Net::Bonjour;
my $res = Net::Bonjour->new('custom');
$res->discover;
my $entry = $res->shift_entry;
socket SOCK, PF_INET, SOCK_STREAM, scalar(getprotobyname('tcp'));
connect SOCK, $entry->sockaddr;
print SOCK "Send a message to the service";
while ($line = <SOCK>) { print $line; }
close SOCK;
SEE ALSO
Net::Bonjour
COPYRIGHT
This library is free software and can be distributed or modified under the same terms as Perl itself.
Bonjour (in this context) is a trademark of Apple Computer, Inc.
AUTHORS
The Net::Bonjour::Entry module was created by George Chlipala <george@walnutcs.com>
perl v5.10.0 2007-03-18 Net::Bonjour::Entry(3pm)