Opened 16 years ago
Closed 7 years ago
#19225 closed defect (fixed)
fcron 3.0.4 fcrontab reports "No such file or directory" for everything
Reported by: | niels@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.1 |
Keywords: | fcrontab | Cc: | mvgrimes, kurthindenburg (Kurt Hindenburg) |
Port: | fcron |
Description
ordimini% fcrontab -e 18:54:54 fcrontab : editing niels's fcrontab no fcrontab for niels - using an empty one 18:54:54 Error while running "/opt/local/bin/vim": No such file or directory 18:54:54 could not stat /tmp/fcr-vgbE99: No such file or directory 18:54:54 could not remove /tmp/fcr-vgbE99: No such file or directory ordimini% ls -al /opt/local/bin/vim -rwxr-xr-x 2 root admin 1368484 24 Mär 22:07 /opt/local/bin/vim ordimini% fcrontab -V fcrontab 3.0.4 - user interface to daemon fcron Copyright 2000-2007 Thibault Godouet <fcron@free.fr> This program is free software distributed WITHOUT ANY WARRANTY. See the GNU General Public License for more details.
Change History (12)
comment:1 Changed 16 years ago by niels@…
Cc: | niels@… added |
---|
comment:2 Changed 16 years ago by mf2k (Frank Schima)
Cc: | compconsultant@… added; niels@… removed |
---|---|
Keywords: | fcron removed |
comment:3 Changed 16 years ago by compconsultant@…
You need to make a file and submit to fcrontab, just like with cron. fcron will not currently make a new one, this is a problem with fcron, not the port.
So, make a file, say named fcron, add your first entry, and submit like so:
fcrontab fcron
Once the users fcrontab exists, it will work (fcrontab -e).
You might want to report the issue to fcron author as I had tried to work with him close to a year ago regarding this bug. The more the merrier.
comment:4 Changed 16 years ago by compconsultant@…
You should note the doc actually sort of says -e is meant for editing an existing file, and, you need to install your initial file.
"he can create a new fcrontab running a simple "fcrontab", and then maintain it using "fcrontab -e"
And
-e Edit user's current fcrontab
And
The first form of the command is used to install a new fcrontab file
I don't think fcron should report those errors though, so, this is why I suggested reporting to fcron author. We don't maintain the source code.
comment:5 Changed 16 years ago by niels@…
Thanks for your responses. When first creating a valid fcrontab file, and then registering it by means of calling fcrontab file
it does indeed work as expected. The mere fact that it reported my $EDITOR binary as missing made me think of a bug straight away, sorry!
I will ping the upstream devs about the confusing error message and possible documentation changes.
Thanks!
comment:6 Changed 16 years ago by compconsultant@…
That would be great. It's nice to see users complain, rather than port maintainers as sometimes, they take it more seriously. fcron has not had an update in a long time though. I hope it is still developed as it's a lot better than cron.
I would close this, but, I do not have access to do so.
comment:7 Changed 16 years ago by mf2k (Frank Schima)
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:9 Changed 9 years ago by macports@…
i have the same issue. but for me it's not working to create a valid fcrontab file first!? i can update with "fcrontab -c file" without erros. only "fcrontab -e" not working!?
macbook:~ myname$ fcrontab -V fcrontab 3.2.0 - user interface to daemon fcron Copyright 2000-2014 Thibault Godouet <fcron@free.fr> This program is free software distributed WITHOUT ANY WARRANTY. See the GNU General Public License for more details. macbook:~ myname$ fcrontab -e 2015-11-21 10:34:00 INFO fcrontab : editing myname's fcrontab 2015-11-21 10:34:00 ERROR Error while running "/usr/bin/vi": No such file or directory 2015-11-21 10:34:00 ERROR Could not open file /tmp/fcr-3FbGpl: No such file or directory 2015-11-21 10:34:00 ERROR could not remove /tmp/fcr-3FbGpl: No such file or directory macbook:~ myname$ sudo ls -l /opt/local/var/spool/fcron/ Password: total 16 -rw-r--r-- 1 root fcron 0 28 Okt 22:01 .turd_fcron -rw-r----- 1 fcron fcron 38 29 Okt 07:43 myname.orig -rw------- 1 myname fcron 179 29 Okt 07:43 new.myname -rw------- 1 fcron fcron 0 28 Okt 22:07 rm.myname -rw------- 1 root fcron 0 29 Okt 07:42 rm.root macbook:~ myname$ fcrontab -l 2015-11-21 10:40:37 INFO listing myname's fcrontab %daily * 6-12 ~/bin/script.sh
comment:10 Changed 9 years ago by macports@…
Resolution: | invalid |
---|---|
Status: | closed → reopened |
comment:12 Changed 7 years ago by kurthindenburg (Kurt Hindenburg)
Cc: | kurthindenburg added; compconsultant@… removed |
---|---|
Resolution: | → fixed |
Status: | reopened → closed |
This is a common issue with EDITOR not being set - I'll add some notes to the port.
Open a new ticket if there are still issues.
Cc Me!