Just a quick question here:
If i had the following:
Code:
use File::Remote;
my $remote = new File::Remote;
# Create a new file and change its permissions
$remote->mkdir("host:/remote/dir");
$remote->touch("host:/remote/dir/file");
use File::Remote;
use Net::SSH::Perl;
$scon = Net::SSH::Perl->new ("server12.comp123.domain123.com",(protocol=>'2',port=>'22',debug=>'true'));
$scon->login("user123","pass123");
print "connected ...\n";
my $remote = new File::Remote;
$remote->touch("server12:/home/user123/file.o") or die ":: $!\n";;
When i execute this code, i'm getting a broken pipe error.
Code:
:: Broken pipe
:: Broken pipe
while executing
"::perl::CODE(0x577fc1c)"
invoked from within
".c.calc invoke "
invoked from within
".c.calc instate {pressed !disabled} { .c.calc state !pressed; .c.calc invoke } "
(command bound to event)
Anyone know how to fix this?
I think its to do with the path to the server, but it seems right to me.
Thanks.
Last edited by Phi01; 03-04-2009 at 10:07 AM..
Reason: UPDATE 2
Hi,
I am new to perl.
I want to read from a file on the basis of some conditions..
I want to define parameters in a configuration file in such a manner like...
etc..
in my perl script, theer is a variable like this..
then i want to read values from first if block from the file... (1 Reply)
I'm nearly finished developing my app, im programming it in tcl/tk. I just need to get 1 last thing done. When my app starts, i ask the user for username and password. These are stored on a file on a unix server.
My problem is how do i read a file from a unix server, i've tried everything but... (3 Replies)
Hi, I am writting some perl scripts for daily backup process. In which I want to pass some data/referance from another txt file. Text file contains only one column and multiple rows. I want to pass this data to variables of another perl script.
e.g.
Refdoc.txt file contains data as:
perl1... (3 Replies)
Hi Everyone, I am very new to perl, but came across a situation wherein I have to read a c++ header file and write the datatype, its identifier and also the length to an excel file. There can be other header files, in the directory but I should browse through the file which has only "_mef:" string... (9 Replies)
Need perl script, data file will be csv format.
I have text file contains 2 colums.
Filename Foldernumber
aaaa 13455
bbbb 23465
cccc 26689
I have two location 1. files present and 2. folders present. I need to search for file and folder if folder... (3 Replies)
Hello,
I am trying to read from a file using PERL:confused, however i need to read specific portions of the file
the file goes like this
<Name 1
Hono
<Name 2
Jack
and so on
anyways i need to be able to write a program that ONLY opens the lines beginning with "<"? so it would... (2 Replies)
If a form's action is the following Perl script how do I make it print the entire contents of the file on the screen?
if(param())
{
my $uploadedFile = param('file');#in the html page 'file' is the value of the name attribute of the input
my $fh = upload($uploadedFile);
... (1 Reply)
Hi ,
I just write a simple function to read the file line by line.
But when I run it it says out of memory.
I am not sure about the root cause, Can someone help me out of this?
:D
#! /usr/bin/perl
use strict;
sub checkAPs{
my $NDPDir = "/home/eweiqqu/NCB/NDP_files/";
... (1 Reply)
Discussion started by: Damon_Qu
1 Replies
LEARN ABOUT DEBIAN
soap::wsdl::server::simple
SOAP::WSDL::Server::Simple(3pm) User Contributed Perl Documentation SOAP::WSDL::Server::Simple(3pm)NAME
SOAP::WSDL::Server::Simple - CGI based SOAP server for HTTP::Server::Simple
SYNOPSIS
package TestServer;
use base qw(HTTP::Server::Simple::CGI);
use MyServer::TestService::TestPort;
sub handle_request {
my ($self, $cgi) = @_;
my $server = MyServer::TestService::TestPort->new({
dispatch_to => 'main',
transport_class => 'SOAP::WSDL::Server::Simple',
});
$server->handle($cgi);
}
my $httpd = __PACKAGE__->new();
$httpd->run();
USAGE
To use SOAP::WSDL::Server::Simple efficiently, you should first create a server interface using wsdl2perl.
SOAP::WSDL::Server::Simple dispatches all calls to appropriately named methods in the class or object set via "dispatch_to".
See the generated server class on details.
DESCRIPTION
Lightweight SOAP server for use with HTTP::Server::Simple, mainly designed for testing purposes. It allows to set up a simple SOAP server
without having to configure CGI or mod_perl stuff.
SOAP::WSDL::Server::Simple is not recommended for production use.
METHODS
handle
See synopsis above.
LICENSE AND COPYRIGHT
Copyright 2004-2008 Martin Kutter.
This file is part of SOAP-WSDL. You may distribute/modify it under the same terms as perl itself
AUTHOR
Martin Kutter <martin.kutter fen-net.de>
REPOSITORY INFORMATION
$Rev: 391 $
$LastChangedBy: kutterma $
$Id: Client.pm 391 2007-11-17 21:56:13Z kutterma $
$HeadURL: https://soap-wsdl.svn.sourceforge.net/svnroot/soap-wsdl/SOAP-WSDL/trunk/lib/SOAP/WSDL/Client.pm $
perl v5.10.1 2010-12-21 SOAP::WSDL::Server::Simple(3pm)