Skip to content

Commit b205bcd

Browse files
authored
Merge pull request #788 from dinossaur23/master
Add note in README that cron is generated with the current user
2 parents d1a985d + 25aebf7 commit b205bcd

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
### unreleased
22

3+
* Add note in README that cron is generated with the current user. [Raquel Queiroz]
4+
35
### 1.0.0 / Jun 13, 2019
46

57
* First stable release per SemVer.

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ This will create an initial `config/schedule.rb` file for you (as long as the co
2323

2424
### The `whenever` command
2525

26+
The `whenever` command will simply show you your `schedule.rb` file converted to cron syntax. It does not read or write your crontab file.
27+
2628
```sh
2729
$ cd /apps/my-great-project
2830
$ bundle exec whenever
2931
```
3032

31-
This will simply show you your `schedule.rb` file converted to cron syntax. It does not read or write your crontab file; you'll need to do this in order for your jobs to execute:
33+
To write your crontab file for your jobs, execute this command:
3234

3335
```sh
3436
$ whenever --update-crontab
@@ -41,6 +43,8 @@ $ whenever --load-file config/my_schedule.rb # set the schedule file
4143
$ whenever --crontab-command 'sudo crontab' # override the crontab command
4244
```
4345

46+
> Note: If you run the whenever --update-crontab without passing the --user attribute, cron will be generated by the current user. This mean tasks that needs other user permission will fail.
47+
4448
You can list installed cron jobs using `crontab -l`.
4549

4650
Run `whenever --help` for a complete list of options for selecting the schedule to use, setting variables in the schedule, etc.

0 commit comments

Comments
 (0)