× 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: rob@xxxxxxxxx
  • Date: Wed, 11 Apr 2001 14:03:03 -0500


My reply is assuming the PC is running NT.

Granted, I am running short of time and I'll be out of the office for a few
days.  Here is a start.

1)  Start,  Settings, Control Panel, Services, Client Access Express Remote
Command, Start, maybe change to Automatic.
2)  Start, Settings, Control Panel, Client Access, Incoming Remote Command
3)  From the 400,
RUNRMTCMD  CMD('C:\PVC4XX\UPLOAD.BAT') +
             RMTLOCNAME(&REMOTE *IP) RMTUSER(&USER) +
             RMTPWD(&PASSWORD)
where &USER and &PASSWORD are NT valid user names and passwords.



Rob Berendt

==================
Remember the Cole!


                                                                                
                                       
                    RReddy@medicalart                                           
                                       
                    spress.com               To:     RPG400-L@midrange.com      
                                       
                    Sent by:                 cc:                                
                                       
                    owner-rpg400-l@mi        Subject:     Re: FTP Question, 
Urgent                                     
                    drange.com                                                  
                                       
                                                                                
                                       
                                                                                
                                       
                    04/11/01 10:22 AM                                           
                                       
                    Please respond to                                           
                                       
                    RPG400-L                                                    
                                       
                                                                                
                                       
                                                                                
                                       





Hey Rob.

Is there anything that needs to be setup in order to run the RUNRMTCMD from
AS400??.

I get the following message after i run the RUNRMTCMD.....

"A remote host refused an attempted connect operation.
Command did not complete successfully. "

Please advice.

Thanks.
Reddy





rob@dekko.com@midrange.com on 04/10/2001 05:32:16 PM

Please respond to RPG400-L@midrange.com

Sent by:  owner-rpg400-l@midrange.com


To:   RPG400-L@midrange.com
cc:

Subject:  Re: FTP Question, Urgent



Warning, Danger.  Note that he qualified his statement with 'at least it
better not'.  Several of the trade magazines have written up how to use
commands like RUNRMTCMD to execute commands on a PC.  There is a ?daemon?
that Client/Access will load on the PC ftp server that you can use to
execute a remote command using ftp.  We do this in production.  I do not
know if there would be a remote command daemon without Client Access. And
yes, just to confirm, our 400 starts up processes on the PC and this is
from a batch job and NOT from using STRPCCMD.  You do need a PC login.  And
I think the Client access daemon can be started or stopped at will to
control access.

Rob Berendt

==================
Remember the Cole!



                    James David Rich
                    <james@eaerich.co        To:
<RPG400-L@midrange.com>
                    m>                       cc:
                    Sent by:                 Subject:     Re: FTP Question,
Urgent
                    owner-rpg400-l@mi
                    drange.com


                    04/10/01 04:54 PM
                    Please respond to
                    RPG400-L






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


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.