UBUNTU 18.04 CRON JOB

Get help for specific problems
Posts: 2
Joined: 26 Sep 2019

jfs

I created a batch file that, among other things, syncs a samba share. The batch file runs fine when I start ffs manually.

I also created a cron task to run the batch job. This "works" -- ffs runs --, but the log indicates that ffs cannot find the share. "Error: Cannot find the following folders:
/run/user/1000/gvfs/smb-share:server=####,share=*****"

FFS is in /opt and is owned by and runs as root; the cron job also runs as root. How can I get the cron job to work?
User avatar
Site Admin
Posts: 7052
Joined: 9 Dec 2007

Zenju

You might have to mount the share: viewtopic.php?t=5282#p18527
Posts: 2
Joined: 26 Sep 2019

jfs

I should have mentioned that I have done that. The share is mounted and appears in the Nautilus "Files" tab. I think that if it were not mounted ffs would not run the batch job successfully manually.
Posts: 14
Joined: 28 Sep 2019

Trevor

Could you post your command line to run the ffs batch? I am having trouble getting it to trigger (Mint 19.2)