I set the following cron in my local machine.
* * * * * /bin/bash -c /home/JSX/Stuff/J/login-check/open-console.sh
The content of open-console.sh
is the following:-
#! /bin/sh
gnome-terminal --full-screen --hide-menubar -e /home/JSX/Stuff/J/login-check/handle-user.sh
It is supposed to open another sh script in terminal. But nothing is happening. Is there anything else I need to do? Like restarting a service or something for the cron job to start running?
*** Absolute paths given in the files are correct. When I entered the command /bin/bash -c /home/JSX/Stuff/J/login-check/open-console.sh
directly in the terminal, it worked.