Jump to content

Run Autoit command once a job is completed in SecureCRT


Recommended Posts

Hi there,

could anyone please suggest me something on a problem I've got? I'm using Autoit to work with SecureCRT. And I need a particular part of my script to be executed once a scheduled job in SecureCRT is finished. Is there any I can detect it? Maybe it can be done by looking up for an occurrence of some string in the terminal? My code is below.

Run("securecrt.exe");

WinWaitActive("Connect");

send("{enter}");

WinWait('Secure CRT');

send("{UP}");

send("{enter}");

Send("password");

send("{enter}");

send("./jobrun RunJob");

send("{enter}");

//here I'd like to wait until the job is finished and then switch to another directory and run another scheduled job

send("another directory");//this part never works

send("{enter}");

send("./jobrun RunJob");

send("{enter}");

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...