Jump to content

Launch a new script on exit


BigCahunaBurger

Recommended Posts

9 hours ago, Kramnik said:

You can do that on CLI, but its kinda dumb in my opinion. When script finishes make it close the client then in CLI if you have another code cued up it will start another client with new script

Nice, so just use the -script flag two times? Or two sets of parameters for one -script flag?

 

Edited by BigCahunaBurger
Link to comment
Share on other sites

I tried with -bot -script twoScript:"username;pass" -script oneScript:"username;pass" as well as "-bot -script oneScript:"username;pass" twoScript:"username;pass" but no luck. I may be formatting it incorrectly. Perhaps you can share your command line format Kramnik, for the record I'm exiting the script on onExit with System.exit(), which is probably not correct.

Link to comment
Share on other sites

4 hours ago, BigCahunaBurger said:

I tried with -bot -script twoScript:"username;pass" -script oneScript:"username;pass" as well as "-bot -script oneScript:"username;pass" twoScript:"username;pass" but no luck. I may be formatting it incorrectly. Perhaps you can share your command line format Kramnik, for the record I'm exiting the script on onExit with System.exit(), which is probably not correct.

I assume you got one CLI commands running fine, so just create a .bat file like this:

-*CLI for first script*

-*CLI for second script*

The first script needs to have System.exit() then after the client closes the bat file will run second line with the new script

  • Like 1
Link to comment
Share on other sites

24 minutes ago, Kramnik said:

I assume you got one CLI commands running fine, so just create a .bat file like this:

-*CLI for first script*

-*CLI for second script*

The first script needs to have System.exit() then after the client closes the bat file will run second line with the new script

Ohh okay. Yeah let me see if that works. It should...

Edited by BigCahunaBurger
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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