× 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.


  • Subject: Re: FTP Question, Urgent
  • From: James David Rich <james@xxxxxxxxxxx>
  • Date: Tue, 10 Apr 2001 15:54:05 -0600 (MDT)

On Tue, 10 Apr 2001 RReddy@medicalartspress.com wrote:

> Is there a way i can call a remote EXE file from AS400 FTP.??.

Short answer: no

Long answer:

> 1.) Send a file from AS400 to the Remote WinNT server.

easy

> 2.) Call a EXE program on the NT server.

Can't be done using ftp client (at least it better not - think of the
security implications - upload crackme.exe, run crackme.exe)

We did something which accomplishes the same task on UNIX.  We added a
cron job to check the upload directory for a new file (the AS/400 would
send this new file every so often).  If the file was found the cron job
would run a program using the file as input.  A result file was then
placed in the download directory for the AS/400 to retrieve.

> 3.) After the EXE program is done running, I need to check for an error
> file ( with name ERRFIL.txt )

See above

> 4.) If the file exists  then i need to get this error file back to AS400.

easy

> Please suggest any ideas. ( please note i am planning to this process from
> AS400 FTP process only )

So while you can't run remote programs using an ftp client, you can set up
the remote host to look for files you are sending it and then act on those
files.

James Rich
james@eaerich.com

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

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.