Jump to content

CronTab with CLI


Recommended Posts

Posted (edited)

I created a crontab to run the following .sh file.

Quote

pkill -9 java
java -jar osbot.jar -allow lowcpu -login Juggles:PASSWORD -bot test:bb:0000 -world 301 -mem 500 -script script:name
sleep 30s

I know the crontab is working because pkill -9 java is ran, it exits my current clients. 
But it won't launch a new client. 
Nothing is wrong with the .sh file because when I type ./bots.sh in terminal, it kills clients and then runs a new client. 

So the problem must be something with my crontab but I can't figure it out.

 

My crontab is

Quote

int * * * * /home/juggles/desktop/bots.sh

Any ideas is appreciated.

Edited by Juggles

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...