Unable to create cronjobs using cronie

@SGS thank you for the command to list timers, much appreciated.

@filo thank you very much! These are a lot of useful infos and you were right, it was an environment variable issue.

So, I can say for sure that I posted in the right section: I’m such a newbie!

‘crontab -e’ command opens Keta editor 'cause a global environment variable is set to use Keta text editor.

Now the fun part, I come from Debian, where by default you find Bash shell, so… I was trying to use Fish shell as Bash, but this isn’t how things work.

I opened:

~/.config/fish/config.fish

and configured:

set -g EDITOR /usr/bin/nano
set -g SUDO_EDITOR /usr/bin/nano
set -g VISUAL $EDITOR

So this is the Fish shell equivalent of setting environment variables inside ~/.bashrc (on Bash).

I edited crontab -e with ‘nano’, thus the temporary file (crontab.something) acts correctly as a buffer, inside I wrote:

@reboot rclone mount --daemon GDrive: /home/elia/DB/

Saved with Ctrl + X and reboot.

My Google Drive was successfully mounted at boot.

This lookslike to me a little bit “dirty” as solution, so I’ll definitively give a try to the systemd service way you pointed me. For now, a big thank you!

2 Likes