Jump to content

CLI doesn't pass -script parameters in Ubuntu 17


Recommended Posts

Posted (edited)

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
Posted (edited)
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

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
  • Recently Browsing   0 members

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