Search found 8 matches

by Homer-S
06 Aug 2022, 07:49
Forum: Help
Topic: Cronjob on ubuntu as su is not working
Replies: 4
Views: 849

Re: Cronjob on ubuntu as su is not working

I tried the xvfb-run command and it worked from cli. Next try will be adding it to sudo crontab. I will report tomorrow :) I am using lightdm and tried the command (after finding PID) but without success on the first try (missing operator). I did not deep dive because xvfb worked Big Thanks for your...
by Homer-S
04 Aug 2022, 21:15
Forum: Help
Topic: Cronjob on ubuntu as su is not working
Replies: 4
Views: 849

Re: Cronjob on ubuntu as su is not working

Thanks for your reply.
" Is this in the user crontab (crontab -e)?"

Yes this is at the moment in the user crontab. I tried it in sudo crontab -e too but this did not work.

If I do echo $DISPLAY via ssh connection
I receive always the 10.0

I tried it already with 0.0 etc
by Homer-S
03 Aug 2022, 08:04
Forum: Help
Topic: Cronjob on ubuntu as su is not working
Replies: 4
Views: 849

Cronjob on ubuntu as su is not working

Hello all, I am using FFS for years on my Ubuntu server. I am trying for nearly the same time to get a sudo cronjob for a batch sync to work without success. I tried nearly everything I found in the web but all is stopping with this error message: Error: Unable to initialize GTK+, is DISPLAY set pro...
by Homer-S
13 Oct 2021, 11:27
Forum: General Discussion
Topic: plz bring a Linux CLI version
Replies: 0
Views: 427

plz bring a Linux CLI version

Hello, I have hard times to get FreeFileSync running in auto mode on Ubuntu. I tried all suggested methods and writtings. Now i am able to sync as a normal user but not as sudo. and some files need sudo to be synced correctly. All issues are happening with Error: Unable to initialize GTK+, is DISPLA...
by Homer-S
18 Dec 2020, 23:48
Forum: Help
Topic: issues with cronjob
Replies: 2
Views: 819

Re: issues with cronjob

Sorry for my late reply. I found finally some time to change it. This is the log entry: No protocol specified 11:00:01: Error: Unable to initialize GTK+, is DISPLAY set properly? for this cron job 0 11 * * * /bin/bash /home/homer/skripte/ffs_daten_backup.sh >> /home/homer/cronlogsudo.log 2>&1 my...
by Homer-S
25 Nov 2020, 18:46
Forum: Help
Topic: issues with cronjob
Replies: 2
Views: 819

issues with cronjob

Hello, I read so many and tried even more but I am not able to run my batch jobs on my Ubuntu 18.04 server by a crontab job. Is there somewhere an working crontab command existing for sudo? All attempts with a single command in crontab was without success. I ended up now in calling a bash script but...
by Homer-S
21 Nov 2019, 22:44
Forum: Help
Topic: FreeFileSync in a cronjob but sudo issues
Replies: 4
Views: 1642

Re: FreeFileSync in a cronjob but sudo issues

Thanks for your answer and help. When adding " env DISPLAY=:10.0 " this to my sudoer config file, visudo is giving a syntax error. May I ask what exactly you mean with this: " It is also pretty much going to be required that you have a running VNC session on :10.0 in that case. If you...
by Homer-S
21 Nov 2019, 21:28
Forum: Help
Topic: FreeFileSync in a cronjob but sudo issues
Replies: 4
Views: 1642

FreeFileSync in a cronjob but sudo issues

I am trying now for a week to get my Freefilesync batch jobs running headless. I read a lot and this lead me to this set up: sudoers.d/ffs homers ALL = NOPASSWD: /home/homers/Software/FreeFileSync/FreeFileSync this is to avoid issues coming from sudo crontab commands. (read in a differ forums) in my...