in reply to Run executable and follow on commands from CMD line

Not something I've tried before. But there might be a way by using open, much the same way you would when piping things to sendmail:
open(MAIL, "|/usr/sbin/sendmail -t"); print MAIL "To: $to\n"; print MAIL "From: $from\n"; print MAIL "Subject: $subject\n\n"; print MAIL $message; close(MAIL);
Otherwise, as you are on windows, maybe part of what you need can be achieved with a .bat?

Replies are listed 'Best First'.
Re^2: Run executable and follow on commands from CMD line
by Anonymous Monk on Oct 22, 2018 at 16:08 UTC

    Wow!! Thank you so much! I hadn't tried that approach yet. I spent about 6 hours trying all kinds of stuff! But it worked perfectly! Here's the code I just used.

    open(Gateway, "|C:/some location/gateway uname\@jupiter.jupiter"); print Gateway "COM open_job,job=232\n";