Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

CLI doesn't pass -script parameters in Ubuntu 17

Featured Replies

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

You have double spaces/tabs between login, bot, etc. It's not specific to an OS, moving to general help section.

  • Author

Alek the problem was the script needed to add "." as a delimiter. This was discovered by Khal. Previously it was ";". 

Edited by Dragonsbreath

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]);
	}
}

 

  • Author
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

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.