I am fairly new to Linux and using Ubuntu. I am trying to set-up a task alert everyday at a fixed time. I am using the "Scheduled tasks" software tool(I have installed this) for the same. This software requires that we give it a command to be run at a specified time of the day so it gives the desired output at the scheduled time.
I am writing an alert message inside a file named alert.txt and trying to launch this using gedit to display the alert message. I am using the following command
gedit /home/xzyabc/path/alert.txt
This command seems to work fine in terminal but fails to launch the gedit editor when it runs through the scheduled software. Can you help me fix this?
Thank you!!
zenity
, but if you must usegedit
, perhaps you need to use the full path, like/usr/bin/gedit /home/xzyabc/path/alert.txt
.gedit
action is being performed by another user, the user of the binary running the scheduler.$PATH
being set to something sensible, especially when the path is so easy to specify.