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



I got wget downloaded and installed. (Boy, did that feel weird for some reason.)

Based on the infocenter, I wrote a CL like this:

PGM

DCL VAR(&CMD) +
TYPE(*CHAR) +
LEN(100) +
VALUE('/QOpenSys/bin/ls')
DCL VAR(&PARM1) +
TYPE(*CHAR) +
LEN(100) +
VALUE('/')

DCL VAR(&NULL) +
TYPE(*CHAR) +
LEN(1) +
VALUE(X'00')

CHGVAR VAR(&CMD) +
VALUE(&CMD *TCAT &NULL)
CHGVAR VAR(&PARM1) +
VALUE(&PARM1 *TCAT &NULL)

CALL PGM(QP2SHELL) +
PARM(&CMD &PARM1)

ENDPGM

which worked. (Though I have to hit F3 to go on.) I suppose my next step is to wait until the contractor tells me the URL to run wget against.


--
Jeff Crosby
UniPro FoodService/Dilgard
P.O. Box 13369
Ft. Wayne, IN 46868-3369
260-422-7531
www.dilgardfoods.com

The opinions expressed are my own and not necessarily the opinion of my company. Unless I say so.


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-
bounces@xxxxxxxxxxxx] On Behalf Of Lukas Beeler
Sent: Tuesday, April 07, 2009 10:21 AM
To: Midrange Systems Technical Discussion
Subject: Re: wget from System i

On Tue, Apr 7, 2009 at 16:11, Jeff Crosby <jlcrosby@xxxxxxxxxxxxxxxx> wrote:
The archives seem to suggest either geturi or httpapi can function as a
wget. Sound reasonable? I'm still having brainlock on how a utility
designed to copy webpages functions as a trigger, but as I said that's
probably just me.


wget http://www.example.com/myfile.php?upload=done

This sends a HTTP request, which will in turn execute a PHP script
with parameter upload set to done. This can then be used to execute
code that processes your upload.

geturi or httpapi should help you do the same. wget would just be a
simple way to achieve this in a Unix shell script.

--
Read my blog at http://projectdream.org
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.




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.