Dragonsbreath Posted April 9, 2018 Share Posted April 9, 2018 (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 April 10, 2018 by Dragonsbreath Quote Link to comment Share on other sites More sharing options...
Alek Posted April 10, 2018 Share Posted April 10, 2018 You have double spaces/tabs between login, bot, etc. It's not specific to an OS, moving to general help section. Quote Link to comment Share on other sites More sharing options...
Dragonsbreath Posted April 10, 2018 Author Share Posted April 10, 2018 (edited) Alek the problem was the script needed to add "." as a delimiter. This was discovered by Khal. Previously it was ";". Edited April 10, 2018 by Dragonsbreath Quote Link to comment Share on other sites More sharing options...
ThatGamerBlue Posted April 10, 2018 Share Posted April 10, 2018 Assuming you're using bash. Semicolon is a separator for "new command" in bash. Escape it. Source code of my jar is 5 lines of code: public class Test { public static void main(String... args) { System.out.println(args[0]); } } 1 Quote Link to comment Share on other sites More sharing options...
Dragonsbreath Posted April 10, 2018 Author Share Posted April 10, 2018 (edited) 14 minutes ago, ThatGamerBlue said: Assuming you're using bash. Semicolon is a separator for "new command" in bash. Escape it. 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 April 10, 2018 by Dragonsbreath Quote Link to comment Share on other sites More sharing options...
Alek Posted April 10, 2018 Share Posted April 10, 2018 Glad we figured that out. Good discussion. Quote Link to comment Share on other sites More sharing options...