04-13-2005
You need to use the Net::FTP module to perform the actual FTP'ing. Reading the source directory on disk can be with primitive functions such as opendir() and readdir(). Or there are modules on CPAN that will do this with a more OO syntax such as DirHandle or IO::Dir.
The other requirements are trivial, as Net::FTP functions give return values that allow you to check whether each operation is successful. Maybe you can try with these lines of thought first.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello,
I am a beginner with korn shell scripting. I have got a text file that gets produced every night and I need to transfer it to a windows shared area.
Is there any command line script (e.g FTP) that I could use to transfer the file automatically without manual intervention everyday?
Any... (4 Replies)
Discussion started by: tagem
4 Replies
2. Shell Programming and Scripting
Hi,
Good Morning everybody.
I need to write a perl script which will get some data from DB2 table and then put it into Sybase table. I have the experience in Oracle and Unix but new to these perl, DB2 and Sybase technologies.
Appreciate if any one can suggest with a sample code.
Thanks... (1 Reply)
Discussion started by: rajus19
1 Replies
3. Shell Programming and Scripting
Hi,
Can anyone help me out how to login on server using public key autorization.I want to use this on system.
Thanks in advance. (1 Reply)
Discussion started by: LochanM
1 Replies
4. HP-UX
hi,
I am using HPUX 11.31(Itanium) and HP 5100 printer.
I am using PCL5.nloo model script present in HPUX by default to print to printer.
I am finding issues in printing paper sizes and few other options.
Description of the problem:
When i give a print with option "half" and "Legal"... (4 Replies)
Discussion started by: meeraramanathan
4 Replies
5. Shell Programming and Scripting
Hi,
Firstly, I have no experience (at all) with shell scripting. So please, go easy on me :)
I did a search for what I was looking for although there were a few things available here and on the net I couldn't find anything tailored to what I am looking for.
Simply put, I have two servers.... (2 Replies)
Discussion started by: lastrider
2 Replies
6. UNIX for Advanced & Expert Users
Hi all,
I have root directory on server 1 say A and having sub directory B now my application generates output files and put in sub directory B.
now i need to transfer these files from server1 to server2 by scp which is having same directory structure A and sub directory B
I have tried... (2 Replies)
Discussion started by: tushar_spatil
2 Replies
7. Shell Programming and Scripting
Hi All
I have two PC connected with each other via LAN cable.
In one of the PC the Perl is installed. What I want to do is transfer the data from one PC to another via Perl.
Is it possible to do this.
---------- Post updated at 11:31 PM ---------- Previous update was at 07:01 AM ----------... (10 Replies)
Discussion started by: parthmittal2007
10 Replies
8. Shell Programming and Scripting
Hi All,
I get the test result file daily after running the main test script. from the resultfile, need to fetch only server info and status and put them in tabular format in a file and as well in CSV format output file.
I tried using awk command but am not able to put them in tabluar... (6 Replies)
Discussion started by: Optimus81
6 Replies
9. Shell Programming and Scripting
Hi Gurus,
I am stuck with the step where i need to fetch the location & sales from the below procedure by taking it from table field using the for loop. any idea how this can be done in unix. From one column both the location and sales are taken out.
create or replace procedure newyork... (2 Replies)
Discussion started by: arun888
2 Replies
10. Shell Programming and Scripting
I am not getting 1 for the failure scenario for my below code. any help would be greatly appreciated. If the input is invalid i should get exit. But in the below scenario i am not getting the message exit o.
ksh -x client_check.ksh sun
+ + hostname
hn=us
+ ]
+
client_check.ksh: test:... (6 Replies)
Discussion started by: arun888
6 Replies
LEARN ABOUT SUSE
receiver
transfer::receiver(n) Data transfer facilities transfer::receiver(n)
__________________________________________________________________________________________________________________________________________________
NAME
transfer::receiver - Data source
SYNOPSIS
package require Tcl 8.4
package require snit ?1.0?
package require transfer::data::destination ?0.1?
package require transfer::connect ?0.1?
package require transfer::receiver ?0.1?
transfer::receiver object ?options...?
object destroy
object start
object busy
_________________________________________________________________
DESCRIPTION
This package pulls data destinations and connection setup together into a combined object for the reception of information coming in over a
socket. These objects understand all the options from objects created by the packages transfer::data::destination and transfer::connect.
API
transfer::receiver object ?options...?
This command creates and configures a new receiver object. The fully qualified name of the object command is returned as the result
of the command.
See the packages transfer::data::destination and transfer::connect for the main options recognized. Here we describe only the
options which go beyond the referenced set.
-command cmdprefix
This option specifies the command to invoke when the transmission of the information in the data source has been completed.
The arguments given to this command are the same as given to the completion callback of method receive, see package trans-
fer::data::destination.
object destroy
This method destroys the object. Doing so while a reception is on progress will cause errors later on, when the reception completes
and tries to access the now missing data structures of the destroyed object.
object start
This method initiates the data reception, setting up the connection first and then copying the received information into the desti-
nation. The method will throw an error if a reception is already/still in progress. I.e. it is not possible to run two receptions in
parallel, only in sequence. Errors will also be thrown if the configuration of the data destination is invalid, or if no completion
callback was specified. The result returned by the method the same as the result of method connect, see package transfer::connect.
object busy
This method returns a boolean value telling us whether a reception is in progress (True), or not (False).
BUGS, IDEAS, FEEDBACK
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category transfer
of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for
either package and/or documentation.
KEYWORDS
channel, copy, data destination, receiver, transfer
COPYRIGHT
Copyright (c) 2006 Andreas Kupries <andreas_kupries@users.sourceforge.net>
transfer 0.1 transfer::receiver(n)