I'm trying to run cron job in azure cloud shell but it is not working
This is my simple cron job
* * * * * /home/meet/clouddrive/temp.sh
where
cat /home/meet/clouddrive/temp.sh
#!/bin/bash
echo "meet" >> /home/meet/clouddrive/test.txt
pwd
/home/meet/clouddrive
meet [ ~/clouddrive ]$ ls
temp.sh
I tried to reproduce the same in my environment and got the results like below:
I tried to run Cron job in azure cloud shell like below:
when I try
crontab -lthere is no job from here.Then create
crontab -eRun
*/1 * * * * echo "this is a test" /home/imran123/testfile.txtThen try to create a file using
vi testfile.txtand I mention "This is test"Then try to give execute permission like below:
chmod +x test.shThen when I executed cmd it run successfully like below: