This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Strings in cron commands (ex. @reboot)

Post/Debate your Suggestions & Requests of XigmaNAS here. This ONLY pertains to XigmaNAS.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Babovand
Starter
Starter
Posts: 46
Joined: 23 Jun 2012 16:25
Status: Offline

Strings in cron commands (ex. @reboot)

Post by Babovand »

I would like suggest the option to be able to use strings in cron, since for some reason, the user crontab gets "reset" every time i reboot my machine, hence i cannot edit and save it manually, for cron settings to persist, it has to be entered from the cron web-gui.

This makes it impossible(?) to use cron with strings because the web-gui(?) adds stars ( * ) in front of the command, making the @reboot command invalid and also crontab commands does not exist, i suspect the stars come from the choosing of "all" in Time schedule of the cron, whatever i choose it stills adds something in front of @reboot.

I was trying to do this on N4F, turns out it did not start rtorrent, it was an old script that i've made and did not remove.
viewtopic.php?f=47&t=1671#p9160

Here is a pic of what im trying to do
http://i45.tinypic.com/30lotv6.png

a drop down menu or something containing these cron strings would be awesome

Code: Select all

  @reboot	   Run once, at startup.
	   @yearly	   Run once a year, "0 0 1 1 *".
	   @annually	   (same as @yearly)
	   @monthly	   Run once a month, "0 0 1 * *".
	   @weekly	   Run once a week, "0 0 * * 0".
	   @daily	   Run once a day, "0 0 * * *".
	   @midnight	   (same as @daily)
	   @hourly	   Run once an hour, "0 * * * *".
Here is the page from crontab containing more information about the strings.
http://www.freebsd.org/cgi/man.cgi?quer ... .0-RELEASE

Post Reply

Return to “Suggestions & Requests”