Reputation: 1002
Is there a command that can edit crontab ? ( I don't want to edit it manually )
For example :
command -parameter * * * * * script
Upvotes: 0
Views: 184
Reputation: 1994
The command crontab file
will set the crontab to the contents of the given file
- if the lines in it are properly formatted (otherwise it will just give an error).
You can use -
instead of a filename to read from the standard input, e.g.:
echo "* * * * * script" | crontab -
Upvotes: 1