I am trying to setup a crontab to execute a command from a specific user.
Here is my code in "crontab -e". Why is this not working ?
*/5 * * * * user /home/user/whoami>swag.txt
I am running ubuntu14.
EDIT: I am using a personal crontab. I am running whoami>swag.txt to test what user is running the crontab.
This is my new crontab.
*/5 * * * * ./whoami>swag.txt
I am now not seeing anything in swag.txt