Finden und löschen

Hallo. Ich nutze die SSD um von der Kamera Bilder zu speichern. Nach einiger Zeit müssen die Bilder gelöscht werden.

Den Befehl Dateien nach 60 Tagen zu löschen wollte ich hiermit machen, geht aber nicht:
find /media/Kamera/ -type f -mtime +60 -exec rm
sudo find /media/Kamera/ -type f -mtime +60 -exec rm
geht auch nicht.

Die Dateien älter 60 Tage sollen also täglich gelöscht werden.

Wie kann ich das machen?

Auto-translation:

I don't think this is about creating nodes is it?

If you mean that the command works outside node-red but not inside then the problem is probably due to the use of sudo, since node red cannot ask for a password. Make sure the the user running node-red has write access to the folder and then it should work without sudo.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.