Jump to content

CLI doesn't pass -script parameters in Ubuntu 17


Dragonsbreath

Recommended Posts

OSBOT Version 2.5.3

When running a script through the command line in Ubuntu 17 nothing past the : in the -script 671:1;2;1;0 flag gets passed into OSBOT. 

java -jar "/Downloads/OSBot 2.5.3.jar" -login -bot -proxy -script 671:1;2;1;0

My command will run the bot in a windows environment but this is the result in Unbuntu
 

Starting SDN script with id: 671
[DEBUG][04/03 02:41:38 PM]: Injected 2 field list filters
[DEBUG][04/03 02:41:38 PM]: Injected 2 field filters
[DEBUG][04/03 02:41:38 PM]: Injected 2 method list filters
[DEBUG][04/03 02:41:38 PM]: Injected 3 method filters
2: command not found
1: command not found
0: command not found

 

EDIT: The fix for this issue was to add the delimiter "." to the script. The command which needs to be used is as follows:

 

java -jar "/Downloads/OSBot 2.5.3.jar" -login -bot -proxy -script 671:1.2.1.0


 

Edited by Dragonsbreath
Link to comment
Share on other sites

14 minutes ago, ThatGamerBlue said:

Assuming you're using bash.

Semicolon is a separator for "new command" in bash. Escape it.

MYrRpbb.png

Source code of my jar is 5 lines of code:


public class Test {
	public static void main(String... args) {
		System.out.println(args[0]);
	}
}

 

The scripter realized that the delimiter in Aleks example was changed from ; to . and once it was added to the script it works perfectly! I did try to backslash but only with commas. 

This is what was needed:

java -jar "/Downloads/OSBot 2.5.3.jar" -login -bot -proxy -script 671:1.2.1.0
Edited by Dragonsbreath
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...