Fadookie
New member
I'm trying to write a cron job that will run my breakfast routine for me while I'm on vacation, but it doesn't work.
Here's how I call the program:
java -Djava.awt.headless=true -Duser.home=/home/eliot/games/kol -Duser.dir=/home/eliot/games/kol -jar /home/eliot/games/kol/KoLmafia.jar script=/home/eliot/games/kol/scripts/fadookie_breakfast.cli --CLI &
When I redirect stderr to a file, it says this:
The bizzare part is that the program runs fine when I type the same thing into the shell, just not when I'm trying to make cron do the exact same thing. I wasn't even getting any output at all until I added the headless argument.
Any advice? I'll probably be gone before I can get it working, oh well. :-\
Here's how I call the program:
java -Djava.awt.headless=true -Duser.home=/home/eliot/games/kol -Duser.dir=/home/eliot/games/kol -jar /home/eliot/games/kol/KoLmafia.jar script=/home/eliot/games/kol/scripts/fadookie_breakfast.cli --CLI &
When I redirect stderr to a file, it says this:
KoLmafia v12.4
Running on Linux
Using Java 1.5.0_10
password:
Validating login server...
Sending login request...
Encountered error in login.
>
The bizzare part is that the program runs fine when I type the same thing into the shell, just not when I'm trying to make cron do the exact same thing. I wasn't even getting any output at all until I added the headless argument.
Any advice? I'll probably be gone before I can get it working, oh well. :-\