Auto Login in Terminal

Ulfada

New member
Is there a command line argument that I can use to automatically login to KoL in a terminal?

I am using KoLmafia r7273 on Ubuntu. I use the following command to start KoLmafia (~/kolmafia is replaced with the full path)
Code:
java -jar -Djava.awt.headless=true -Duser.dir=~/kolmafia -Duser.home=~/kolmafia ~/kolmafia/KoLmafia.jar --CLI
I then get this output
Code:
KoLmafia r7273
Running on Linux
Using Java 1.6.0_13


username:
Once I type in my username the program logs in and runs my login script perfectly. I just want to be lazy and avoid typing in my username!
 

jasonharper

Developer
The only way to avoid the "username:" prompt in CLI mode is to specify the name of a script at the end of the command line - the script could simply consist of "login username".
 

alphacow

New member
Using the following command (on a Mac):

Code:
java -jar /Applications/KoL/KoLmafia.jar login.ash

where login.ash is a file with one line, "login alphacow", I get the following error:

"Unknown variable 'login' (login.ash, line 1)"

Any suggestions?
 
Top