|
I am looking for a robust FTP transfer script that I can use with cron, any recommendations?
I would love a script in Python that could run in the background.
Started by Daniel on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
Scriptable) FTP transfers wget (for downloads) and wput (for uploads.
For most non-interactive (i.e.
|
|
I have an existing Perl script that uses the FTP object to send a couple of files to an AIX box. I just discovered that our Linux box does not support FTP. It does support SFTP. What steps should I go through to convert my script to use SFTP?
Started by EvilTeach on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I made a wrapper object dependencies from CPAN....
But it was to prepare any current FTP script to be run via SFTP when needed.
You'll need the Net::SFTP module and its.
Your current script is probably using the Net::FTP module.
|
|
Is there a way to run a script over a file that has been uploaded on an FTP server.
I am running ProFTP on the server and would like to process the uploaded files immediately after they are uploaded. The ways I have currently thought of are
Cron Job to...
Started by jW on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at serverfault):
If not, you can likely download file watcher code and or an already-written shell script which....
Or another FTP server product Have some operating system process or cron job (as you mentioned in both in to the FTP server if it exists.
|
Ask your Facebook Friends
|
I have a script that checks responses from HTTP servers using the PEAR HTTP classes. However, I've recently found that the script fails on FTP servers (and probably anything that's not HTTP or HTTPS). I tried Google, but didn't see any scripts or code...
Started by Thomas Owens on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
See here HTTP works slightly....
Wouldn't it be simpler to use the built-in PHP FTP* functionality than trying to roll your own definition (http:// or ftp://, etc) in order to determine which functionality to use, but that is fairly to http.
|
|
Hi all,
I would need a bash script to transfer folders recursively via FTP. Username/password/IP - static defined.
Server where the script runs on: Linux Source server: Samba (Linux...) Dest. Server: Linux As the files to be transferred are big database...
Started by laurens on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
If the destination server is Linux might I suggest just using rsync with an ssh key? FTP is unencrypted.
|
|
I am currently creating an overnight job that calls a Unix script which in turn creates and ftps a file. I would like to check all possible return codes. The unix man for ftp doesn't list return codes. Does anyone know where to find a list? Anyone with...
Answer Snippets (Read the full thread at stackoverflow):
Regular FTP client, one way you can test for failure is by, inside your script, including first from the command and, if it's not 0, send the log file in the email?
The FTP command does not return anything code so far is as follows....
|
|
I have a .bat file that runs a ftp script, grabbing files from the server and copying them to my machine. Works great.
I now want this .bat file to report if any of these errors occured.
If you could point me in the right direction to the general idea...
Started by Tommy on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
Both....
Even if you deal for the job instead.
To be honest I've never had great success using fixed FTP scripts.
If ftp exits after some error it probably returns a non-zero code indicating it by email.
Here.
They are described e.g.
|
|
This is a follow up to FTP BAT file - Windows Scheduled Task .
I copied the FTP script, but I can't transfer the files to my local computer.
All I get is this (server address omitted):
331 Password required for ftpdemo. 230 User ftpdemo logged in. ftp...
Started by rm on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
Before the mget command add a line that says
prompt
Perhaps ftp -i will solve the problem.
|
|
I'm starting to write an (sophisticated) FTP distribution script, but I thought: this can't be! I'm reinventing the wheel! Reliably distributing files to remote servers under controlled conditions from a central location is as old of a task as computers...
Started by ExpertNoob1 on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
NcFTP Client
If I was given this task I'd use Expect , AFAIK is available on most unixes, preistalled on linux. .
It's installed by default in many distributions and offers pretty sophisticated functionality .
You might find lftp to be helpful.
|
|
Sorry I'm new to this sort of thing. I'm trying to write a bash script that uploads a file to a server. How can I achieve this? Is a bash script the right thing to use for this?
Solution: I ended up using scp to copy the files securely.
scp <file to...
Started by Andrew on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
ftp -n $Server <<End "$Filename.lsm" put "....
Is the file name # usage: this_script <filename> IP_address="xx.xxx.xx.xx" username="username" domain " | ftp -n > ftp_$$.log
You can use a heredoc to do this e.g.
|