- create a file
- change its permissions at a specific time
- change the permission.
At the moment this is what I have and it changes the permissions of the file but not according to the time specified.
#!/bin/bash
$ at 13:05
chmod 777 bin/permission.sh
At the moment this is what I have and it changes the permissions of the file but not according to the time specified.
| |||||
feedback
|
This question came from our site for professional and enthusiast programmers.
|
If you want to make a file executable at 3pm, you can do:
The | |||
|
feedback
|
|
You can use crontab
And write:
supposing you want it to be executed everyday at 13:05. Finally, save the file. NOTE: The default editor seems to be "vi", if you are not comfortable with this you can change it before executing "crontab -e" with:
for example. | |||||
feedback
|