mardi 2 décembre 2014

How to run a cron job to execute every minute?


I am trying to create a directory having timestamp in its in name in /home directory. I have created following cron job as root user. But it's not running. What's wrong I am doing?


Following is my cron job which I have created with root user privilege.



[root@bvdv-emmws01 home]# crontab -l
* * * * * root /home/test.sh


Folloing are the contents of



[root@bvdv-emmws01 home]# cat test.sh
#!/bin/bash
mkdir test_$(date -d "today" +"%Y%m%d%H%M%S")


Aucun commentaire:

Enregistrer un commentaire