dostoyevski
New Member
I want to program a task with crontab. This is the bash file:
#! / bin / bash
export JAVA_HOME = / usr / lib / jvm / jdk1.8.0_261
java -jar /home/luilli/Desktop/dist/table.jar
and this is the crontab command:
32 12 * * * /home/luilli/firstboot.sh
has permissions to run, i change them with:
chmod 744 firstboot.sh
i tryed to run the bash file directly from the terminal , and it runs perfect.
#! / bin / bash
export JAVA_HOME = / usr / lib / jvm / jdk1.8.0_261
java -jar /home/luilli/Desktop/dist/table.jar
and this is the crontab command:
32 12 * * * /home/luilli/firstboot.sh
has permissions to run, i change them with:
chmod 744 firstboot.sh
i tryed to run the bash file directly from the terminal , and it runs perfect.