× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Buzz Fenner wrote:
I'm needing to write a procedure that can be scheduled to run at night that
copies e-mail backup files from a combo e-mail server/firewall (it has no
command interface) to a folder on the IFS.  A new folder will have to be
created each week for the seven daily backup files.  I have no experience
with FTP and was beginning to take a look at Qshell.  I'm open to
suggestions that will get me pointed in the right direction and I would like
it to be a program/procedure that executes on the AS/400 (v5r2m0).

The easy way is to have the unix box do the sending since unix has much better scripting capabilities. Here is something we do:


#!/bin/sh
cd /home/place/we/store/backups
ftp remotehost <<END_SCRIPT
cd /home/place/to/put/backups
binary
mput *
quit
END_SCRIPT
exit 0

I know you said you want it to run on the AS/400, but I think having unix do it is easier. Nothing fancy is required. You can have ftp make whatever directories you want. You can also do the NFS stuff other mentioned. In that case I would still have unix manage things simply because the unix scripting tools are better.

James Rich


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.