You can add an ampersand (&) to the end of the ftpscript line, and that will release each copy to run independently. Depending upon where these files are going on your network, and the network speed, there may or may not be much difference in total throughput, and having each connection running more slowly might cause timeout errors.
One thing that I noticed, you have commas separating the fields in the input data file. Either use a text editor to replace these commas with spaces, or add
prior to the read statement in the script.
Last edited by jgt; 02-14-2010 at 04:12 PM..
Reason: Added comma/space delimiter
hi dear i m very new to socket programing .
i need the source code which sends file from server to client .
i mean both server n client programe which sends file .
can u do this for me please
my email id is email id removed
regards bilal (1 Reply)
Hi Guys,
There was a post that I saw here a while ago regarding file system layout and what to put where, which I am unable to find now..
A user here posted a man page that list what each partition should have in it and what it is used for and were you should install custom packages.
ie:... (1 Reply)
hi All,
i have 3 files
file1
file2
file3
these 3 files are shell (KSH) scripts. i want to place all these 3 shell scripts in another file file99 and execute these files simultaneoulsy
inside the file99 these 3 files should be present and executed simultaneously when i excute file99 (nohup... (1 Reply)
Dear Experts,
please help i am very much confused here and not getting the right path,
actually i want to send a file from client to a server,
initially i used mmap() which is failing most of the time so i want to use general IO streams to do that,
i can open a file in "rb" mode
and read... (1 Reply)
Hi,
I am trying to write some test code for bigger project where my perl script will send file over to server. This is the current SERVER and CLIENT code I have so far. When I type "hi" from client I get hello back from server and like wise I send send command I get respond back the problem... (1 Reply)
Hi
Can somebody help me with solution for this PLEASE?
I have a flat file and need to insert delimiters at fixed positions in all the lines so that I can easily convert into EXCEL with columns defined as per their width.
For Example
Here is the file
{
kkjhdhal
sdfewss
sdtereetyw... (7 Replies)
I'm trying to write a Perl script where a file from a UNIX server box connects to a Windows server box and copies that file into the Window box.
The main problem I have right now is that whenever I try to connect to the Windows box, the connection is refused.
The error message that always pops... (2 Replies)
Hey everyone.
What would be the best method to insert commas (or comma-quotes) into a file at set locations.
Every line in the file looks like this:
1234567890123456 123456BIGAUDIODYNAMITE33 123.12 123456 12345678901234MARK E WILLIAMS 123456
The comma's should... (6 Replies)
Hi ,
I have a file which looks like this
source1 LEN predictive 392879 394347 0.955489 + . Name=sa000003.1;ID=sa000003;Alias=sa121751.1;
source1 LEN descriptive_1 391082 392878 . . . Parent=sa000003.1;supp_id=.1805.1;
... (3 Replies)
Hi All,
I am using a webdav server
host name : abc.xyz.com.ak
username : user123
password : password123
port : 80
I need to send files stored in my windows system to the server, any idea how to do it.
I dont know how to create a url in linux for webdav server using details. (2 Replies)
Discussion started by: prakhar_dubey
2 Replies
LEARN ABOUT DEBIAN
io::async::protocol::linestream
IO::Async::Protocol::LineStream(3pm) User Contributed Perl Documentation IO::Async::Protocol::LineStream(3pm)NAME
"IO::Async::Protocol::LineStream" - stream-based protocols using lines of text
SYNOPSIS
Most likely this class will be subclassed to implement a particular network protocol.
package Net::Async::HelloWorld;
use strict;
use warnings;
use base qw( IO::Async::Protocol::LineStream );
sub on_read_line
{
my $self = shift;
my ( $line ) = @_;
if( $line =~ m/^HELLO (.*)/ ) {
my $name = $1;
$self->invoke_event( on_hello => $name );
}
}
sub send_hello
{
my $self = shift;
my ( $name ) = @_;
$self->write_line( "HELLO $name" );
}
This small example elides such details as error handling, which a real protocol implementation would be likely to contain.
DESCRIPTION EVENTS
The following events are invoked, either using subclass methods or CODE references in parameters:
on_read_line $line
Invoked when a new complete line of input is received.
PARAMETERS
The following named parameters may be passed to "new" or "configure":
on_read_line => CODE
CODE reference for the "on_read_line" event.
METHODS
$lineprotocol->write_line( $text )
Writes a line of text to the transport stream. The text will have the end-of-line marker appended to it; $text should not end with it.
AUTHOR
Paul Evans <leonerd@leonerd.org.uk>
perl v5.14.2 2012-10-24 IO::Async::Protocol::LineStream(3pm)