G'day igrepstuff,

Welcome to the Monastery.

I have done something fairly similar to this; although, it was a long, long time ago (>15 years). The basic steps, as best as I remember, were:

  1. Use cron to start Perl script on local Unix machine.
  2. Perl script connects, via ftp, to remote MVS machine.
  3. The ftp quote command started COBOL program on MVS machine.
  4. The ftp get command retrieved output from MVS machine.
  5. Retrieved output processed on the local Unix machine.
  6. Rinse and repeat on next cron cycle.

It was somewhat more involved than that; for instance, there was the ability to monitor progress on the remote machine from the local machine. However, the important bit is that everything, except basic FTP commands (like get), were performed using the quote command.

I don't know how the commands via quote were set up for the remote machine; it's not something I've ever had to do; I can't help you further with that aspect of your task.

I suggest you speak to the administrators of your remote machine and discuss your task with them.

[As already pointed out by others, this in not really a Perl question. We do allow some latitude with off-topic questions; however, please add an [OT] prefix to your question's title. See "How do I change/delete my post?" if you're not sure how to do this. Thankyou.]

— Ken


In reply to Re: execute local script on remote machine via ftp & crontab by kcott
in thread execute local script on remote machine via ftp & crontab by igrepstuff

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.