01-03-2011
Anyone?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I am trying to write a script to automatically use a predefined program to open a file according to its extension... But I don't know how to pass "programeta" ... :confused:
while ]; do
case $1 in
-pdf ) programeta="kpdf"
shift 1 ;;
... (1 Reply)
Discussion started by: pau
1 Replies
2. Shell Programming and Scripting
Good day,
I'm new to linux environment...Is there any scripts available for me to check ports (lets say port 80 and 21) through shell with just a single commandline?
Any response is very much appreciated..
thanks (4 Replies)
Discussion started by: arsonist
4 Replies
3. UNIX for Dummies Questions & Answers
Hello I am new to Ubuntu and I have a quick question about router settings. When I connect directly to my cable Internet ubuntu works fine. But when I connect it to my router I can't get connectivity. I am using ubuntu 9.04 and am using D-link DI-604 router. I have reset both my router and modem... (0 Replies)
Discussion started by: jae99
0 Replies
4. UNIX for Dummies Questions & Answers
I set up remote printing on a clients Unix server to my Windows XP USB printer. My USB printer is connected directly to my PC (no print server and no network input on printer). With my Win XP PC connected to my cable modem (without the router), i can do
lp -dhp842c /etc/hosts and it prints. I... (7 Replies)
Discussion started by: jmhohne
7 Replies
5. IP Networking
Hello I am having some issues doing to routing I have 4 network cards and one is connected to a linksys router with everything turned off to give us a static ip to use for the gateway out to the internet.
Hear is what we have
We have
eth2 with ip address of 192.168.1.2 / sub 255.255.255.0... (0 Replies)
Discussion started by: psutliff-una
0 Replies
6. Red Hat
hi,
I am using red hat .I want that when ever the user login in GUI interface the terminal windows automatically open and then the user want to logout it 1st close the terminal and then login. There is a file in #ls -a i.e .bashrc and .bash_logout
I does not know how to add my... (0 Replies)
Discussion started by: mypass
0 Replies
7. IP Networking
Hi,
I have two Cent OS Linux systems and one Ubuntu OS system contains two Ethernet Cards.
I need to create two networks by using Ubuntu sys as router. One network need to configure in IPv4 addresses and another network should configure in IPv6 addresses. Please help me how to configure two... (0 Replies)
Discussion started by: hanuma614
0 Replies
8. IP Networking
hi all. and sorry for the random question, but this sparkled a raging flame-war at work and i want more points of view
situation
a router, with linux of some sort,
dhcp client requesting for ip in wan1 (as usual with wan ports)
dhcp server listening in lan1, and assigning ip (as usual... (9 Replies)
Discussion started by: broli
9 Replies
9. UNIX for Beginners Questions & Answers
Hi Friends,
Every I try to open a vi window vim help.txt automatically opens evertime.
After doing ZZ or :q! also the same page opens automatically.
How to stop this? Is it machine specific ? Other users who are opening the same servers and files are not facing this issue.
Thanks... (1 Reply)
Discussion started by: sudiptabhaskar
1 Replies
10. Shell Programming and Scripting
Hi Friends,
Every I try to open a vi window, vim help.txt automatically opens evertime.
After doing ZZ or :q! also the same page opens automatically.
How to stop this? Is it machine specific ? Other users who are opening the same servers and files are not facing this issue.
Thanks... (3 Replies)
Discussion started by: sudiptabhaskar
3 Replies
LEARN ABOUT DEBIAN
net::upnp::device
Net::UPnP::Device(3pm) User Contributed Perl Documentation Net::UPnP::Device(3pm)
NAME
Net::UPnP::Device - Perl extension for UPnP.
SYNOPSIS
use Net::UPnP::ControlPoint;
my $obj = Net::UPnP::ControlPoint->new();
@dev_list = $obj->search(st =>'upnp:rootdevice', mx => 3);
$devNum= 0;
foreach $dev (@dev_list) {
$device_type = $dev->getdevicetype();
if ($device_type ne 'urn:schemas-upnp-org:device:MediaServer:1') {
next;
}
print "[$devNum] : " . $dev->getfriendlyname() . "
";
unless ($dev->getservicebyname('urn:schemas-upnp-org:service:ContentDirectory:1')) {
next;
}
$condir_service = $dev->getservicebyname('urn:schemas-upnp-org:service:ContentDirectory:1');
unless (defined(condir_service)) {
next;
}
%action_in_arg = (
'ObjectID' => 0,
'BrowseFlag' => 'BrowseDirectChildren',
'Filter' => '*',
'StartingIndex' => 0,
'RequestedCount' => 0,
'SortCriteria' => '',
);
$action_res = $condir_service->postcontrol('Browse', \%action_in_arg);
unless ($action_res->getstatuscode() == 200) {
next;
}
$actrion_out_arg = $action_res->getargumentlist();
unless ($actrion_out_arg->{'Result'}) {
next;
}
$result = $actrion_out_arg->{'Result'};
while ($result =~ m/<dc:title>(.*?)</dc:title>/sgi) {
print " $1
";
}
$devNum++;
}
DESCRIPTION
The package is used a object of UPnP device.
METHODS
getdescription - get the description.
$description = $dev->getdescription(
name => $name # undef
);
Get the device description of the SSDP location header.
The function returns the all description when the name parameter is not specified, otherwise return a value the specified name.
getdevicetype - get the device type.
$description = $dev->getdevicetype();
Get the device type from the device description.
getfriendlyname - get the device type.
$friendlyname = $dev->getfriendlyname();
Get the friendly name from the device description.
getmanufacturer - get the manufacturer.
$manufacturer = $dev->getmanufacturer();
Get the manufacturer name from the device description.
getmanufacturerrul - get the manufacturer url.
$manufacturer_url = $dev->getmanufacturerrul();
Get the manufacturer url from the device description.
getmodeldescription - get the model description.
$model_description = $dev->getmodeldescription();
Get the model description from the device description.
getmodelname - get the model name.
$model_name = $dev->getmodelname();
Get the model name from the device description.
getmodelnumber - get the model number.
$model_number = $dev->getmodelnumber();
Get the model number from the device description.
getmodelurl - get the model url.
$model_url = $dev->getmodelurl();
Get the model url from the device description.
getserialnumber - get the serialnumber.
$serialnumber = $dev->getserialnumber();
Get the model description from the device description.
getudn - get the device UDN.
$udn = $dev->getudn();
Get the UDN from the device description.
getupc - get the device UPC.
$upc = $dev->getupc();
Get the UPC from the device description.
getservicelist - get the device type.
@service_list = $dev->getservicelist();
Get the service list in the device. Please see Net::UPnP::Service too.
SEE ALSO
Net::UPnP::Service
AUTHOR
Satoshi Konno skonno@cybergarage.org
CyberGarage http://www.cybergarage.org
COPYRIGHT AND LICENSE
Copyright (C) 2005 by Satoshi Konno
It may be used, redistributed, and/or modified under the terms of BSD License.
perl v5.10.1 2009-07-27 Net::UPnP::Device(3pm)