05-16-2002
You can write a smilar FTP script.
if you are "putting" a file,
replace the put with ls and see if your file is in there.
if you are "getting" a file,
search for the file in your local directory and you can then
know if the FTP was successfull or not.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
If I wanted a machine to put a specific file onto another OS far across the internet via FTP - and I wanted to do it automatically not user intervented, how would I do that?
Use the PUT command?
The file name and position never changes, it gets overwritten and the system on the other end... (6 Replies)
Discussion started by: n9ninchd
6 Replies
2. UNIX for Dummies Questions & Answers
How can an automated script be setup to run at a later time in the day. cron runs recurring tasks. I am interested in a one time process.
I want to back up a number of files whenever I make changes to an application and ftp for backup purposes. The script to automate the zipping of files has... (1 Reply)
Discussion started by: msmkeml
1 Replies
3. IP Networking
I have seen the script posted yesterday for automated ftp
Can we do some thing like ftp ing multiple files in one script
Example input.txt has all files names to be ftped
input.txt ------
a.tar
b.ccp
c.perl
i need to ftp all the files present in input.txt
i tried something like... (0 Replies)
Discussion started by: pbsrinivas
0 Replies
4. Shell Programming and Scripting
Hi
I am trying to delete some specific files ( files other than created today) from the server on a cron basis. I wrote a small script, but I am stuck up in how to delete only specific files.
#!/usr/bin/expect -f
set IP
set timeout -1
spawn ftp $IP
expect ):
send "username\n"... (10 Replies)
Discussion started by: sangfroid
10 Replies
5. Shell Programming and Scripting
Automated FTP.
hint : use 'atd' to schedule to run a specific script.
An Env Variable should be created,say CONF_DIR which points to some dir.
@ some time, create a TAR file of this and FTP it to some server. (3 Replies)
Discussion started by: vishalzone2002
3 Replies
6. Shell Programming and Scripting
I want to do Automated FTP from linux client to LINUX server using a shell script after every one hour. And copies last most updated file from Linux server.
OR
You can say that whenever files get modified on LINUX server so it also copies on my LINUX client.
Linux SERVER path=... (4 Replies)
Discussion started by: wakhan
4 Replies
7. IP Networking
Every day i ftp tar.gz a file from the production server to a back up machine.. This task creates way to much traffic on the network at the end of the day and puts and undo load on the production machine during operation hours. i would like to create a script that would automatically fire off the... (36 Replies)
Discussion started by: LowOrderBit
36 Replies
8. Shell Programming and Scripting
Hi all,
I'm using the following script to automated ftp files to 1 ftp servers
host=192.168.0.1
/usr/bin/ftp -vi >> $bkplog 2>&1 <<ftp
open $host
bin
cd ${directory}
put $files
quit
ftp
and the .netrc file contain
machine 192.168.0.1
login abc... (4 Replies)
Discussion started by: varu0612
4 Replies
9. Shell Programming and Scripting
Hello,I just know the basics of scripting & I need a script to automate ftp since I use it quite often.
I use ftp to transfer different kind of files and everytime the source & the destination directories are different for transferring files, so can anyone help me out on this urgently.. (2 Replies)
Discussion started by: mohit_02mar
2 Replies
LEARN ABOUT DEBIAN
io::all::ftp
IO::All::FTP(3pm) User Contributed Perl Documentation IO::All::FTP(3pm)
NAME
IO::All::FTP - Extends IO::All to FTP URLs
SYNOPSIS
use IO::All;
"hello world
" > io('ftp://localhost/test/x'); # save to FTP
io('ftp//example.org/pub/xyz') > io('xyz'); # GET to file
# two ways of getting a file with a password:
$content < io('ftp://me:secret@example.org/xyz');
$content < io('ftp://example.org/xyz')->user('me')->password('secret');
DESCRIPTION
This module extends IO::All for dealing with FTP URLs. Note that you don't need to use it explicitly, as it is autoloaded by IO::All
whenever it sees something that looks like an FTP URL.
METHODS
This is a subclass of IO::All::LWP. The only new method is "ftp", which can be used to create a blank IO::All::FTP object; or it can also
take an FTP URL as a parameter. Note that in most cases it is simpler just to call io('ftp//example.com'), which calls the "ftp" method
automatically.
OPERATOR OVERLOADING
The same operators from IO::All may be used. < GETs an FTP URL; > PUTs to an FTP URL.
SEE ALSO
IO::All::LWP, IO::All, LWP.
AUTHORS
Ivan Tubert-Brohman <itub@cpan.org> and Brian Ingerson <ingy@cpan.org>
COPYRIGHT
Copyright (c) 2007. Ivan Tubert-Brohman and Brian Ingerson. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See <http://www.perl.com/perl/misc/Artistic.html>
perl v5.10.0 2007-03-29 IO::All::FTP(3pm)