• Subject: Re: Anyone use FTP with UNIX systems?
  • From: "Patrick Townsend" <patownsend@xxxxxxxxxxxxxx>
  • Date: Fri, 4 May 2001 15:18:17 -0700
  • Organization: Patrick Townsend & Associates Inc

Terry,

As others have noted the way to do this is using the Rexec facility on UNIX.
The AS/400 provides an Rexec client with the RUNRMTCMD. You can run this
command from within FTP by using SYSCMD. So you could do this:

  ftp unix
  user username
  pass password
  put some-file
  syscmd call mylib/mypgm
  quit

If the program MYPGM in MYLIB executes the RUNRMTCMD facility it can launch
the process and stay in synch with your file transfer. In our product we
allow substitution parameters into SYSCMD fields. If you are developing this
yourself you would need to program this capability into your script.

You may have some issues with Rexec on the UNIX if the system administrator
has not made it available. We have seen UNIX developers implement sockets
servers that take an FTP connection and execute a script. You just need to
be careful about the security issues of doing something like this.

Lastly, the AS/400 has a shell facility, but I'm not sure if it supports
secure shell. Maybe others on this list will be able to comment about secure
shell connections from AS/400 (ahem, iSeriers) to UNIX.

HTH,
Patrick
---
IBM AS/400 communications, FTP automation, and eCommerce
software and consulting services.

http://www.patownsend.com

----- Original Message -----
From: "Terry Grider" <tgrider@arkansas.net>
To: <MIDRANGE-L@midrange.com>
Sent: Friday, May 04, 2001 9:43 AM
Subject: Anyone use FTP with UNIX systems?


> Does anyone know how to get a UNIX system to run a command with a file
> name as a parameter after FTPing a file to the UNIX system?
>
> --
> Terry Grider
> Simmons First National Bank
> tgrider@arkansas.net
>
>
> +---
> | This is the Midrange System Mailing List!
> | To submit a new message, send your mail to MIDRANGE-L@midrange.com.
> | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
> | To unsubscribe from this list send email to
MIDRANGE-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator: david@midrange.
com
> +---

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-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.