Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to write a simple script to 1) open a new CMD window 2) navigate to a location 3) execute a .exe 3) run commands in new state (from .exe). The purpose of the exe is to open a com into another program.
#!/bin/perl use strict; use warnings; system ('start cmd /k cd C:/some location/gateway.exe uname@jupiter.ju +piter &&COM open_job,job=232');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Run executable and follow on commands from CMD line
by cosmicperl (Chaplain) on Oct 22, 2018 at 14:40 UTC | |
by Anonymous Monk on Oct 22, 2018 at 16:08 UTC |