Setting up Cron Job

RealAct

Verified User
Joined
Aug 19, 2019
Messages
21
Location
Miami, FL
Hey there everyone,

I need to run a script on my server that runs the following command every hour, at the 30 minutes past the hour mark. This is the command I need to run.

Code:
./console pavlovstats:decode

The script is located at:

Code:
/domains/stats.domain.net/bin/

So I created a Cron job to run the following command:

Code:
 cd domains/stats.domain.net/bin/ && ./console pavlovstats:decode

To run at minute 30 (I believe). Did I set up this correctly?

Thanks in advance.
 

Attachments

  • sshot-3.png
    sshot-3.png
    63.8 KB · Views: 152
Yes that might work. Just try it out and see in the logs if it worked. You might need to loose the trailing slash after bin/ but I'm not 100% sure,
 
Yes that might work. Just try it out and see in the logs if it worked. You might need to loose the trailing slash after bin/ but I'm not 100% sure,
Thanks @Richard G, when I type that command on the terminal myself it works, so I guess it should work, but yeah, I'll have to check the logs. Hopefully it does lol.
 
@RealAct yep, looks good.
I also checked yesterday right after you replied to me, and found the same question with the same solution on linuxquestions.org so I had a good feeling about it. ;)
 
Back
Top