Autoload a script at startup

Status
Not open for further replies.

metalqga

New member
I'm running gnu/linux and want to make kolmafia do sth while I'm not at home using cron.
Here is my script: (not final version)
login metalqga
outfit meat
breakfast

acquire 1 milk of magnesium
acquire 3 sleazy hi mein
acquire 19 cup of primitive beer
acquire 15 twinkly wad
acquire clockwork chef-in-the-box
acquire clockwork bartender-in-the-box
create 1 mae west
acquire 5 strawberry
acquire 5 bottle of whiskey

use 1 milk of magnesium
eat 3 sleazy hi mein
cast 1 Booze
drink 19 cup of primitive beer
use 15 twinkly wad
adventure 16 Giant Castle

restore hp
restore mp

cast 3 summon stickers
cast 10 Ballad of Richie Thingfinder



adventure * Giant Castle


outfit ZZZZZ
create 5 raspberry
create 5 domesticated turkey
drink 1 mae west
exit
I've tested it and works great, but I cannot find a way to innitiate it via the terminal.
Here is how I try to do it but no luck
java -jar -Djava.awt.headless=true -Duser.dir=/home/metalqga/kolmafia -Duser.home=/home/metalqga/kolmafia /home/metalqga/kolmafia/KoLmafia.jar --CLI call 'auto1.sh'
> call 'auto1.sh'
call auto1.sh
exec, load etc...
here is the output of call auto1.sh
KoLmafia v12.9
Running on Linux
Using Java 1.6.0_07

No available namespace with function: call
If I type call auto1.sh in kolmafia's CLI everything works great.

Thanks for any help provided!
EDIT
FOUND the answer http://kolmafia.us/showthread.php?p=10498#post10498
sorry for the mess, you can erase this thread!...
 
Last edited:
Status
Not open for further replies.
Top