purepixels
New member
- Joined
- Jul 5, 2019
- Messages
- 3
Hi all,
Working with DirectAdmin 1.646, on a CentOS 7 vps. I don't know what to use to start the command. Not being a programmer, nor don't have I enough knowledge to get this cron command setup right and thus, the job keeps failing. I try to find some documentation to learn stuff like this, but either I'm searching for the wrong topics, or it's hard to find the right documentation. So if there's someone who can guide me in the right directions, I would be very thankful.
I'm trying to setup a cron job for a client website. I have to url's - one is a processing url, the other is a trigger url, both url's are like this;
trigger
and
processing
The suggestion is to set the trigger job to my needings, few times a day during working hours. The processing url needs to be called every x-minutes, for me every 15 minutes will be fine. I get the timing thing. Setting a schedule to make this work is not the issue. My issue is with setting up the command in the correct way. The thing I could use some help is with the command part.
Do I start the command like this; /usr/bin/wget - or will it be enough to only put wget as first part of the command? I read that since it's an url on the same server, I do not need to use CURL command, if I understand correctly, that is used to import from remote locations. In my case, all data is located in the same account where the website is located, within the DirectAdmin user. And than there are a series of letters which can be used to alter the output of the cron, -O, -s, -L, all sorts of stuff which I have a hard time finding out what all of those do or mean. I have no idea if I need those in my command line. In the examples given by the documentation I have from the Import-software, they show the cron jobs without any other addition to the cron command.
And another thing from the url to be called for with the cron, do i need to put that between "url" or 'url', does it matter if I use ' or "?
As you can see, a real NOOB here! I hope someone can help me in the right direction in understanding what I'm doing wrong, and why. I've tried searching for a document with all the parts to build up a cron command, but I've not been able to find a guide that helped me so far.
Many thanks in advance for any help!
Working with DirectAdmin 1.646, on a CentOS 7 vps. I don't know what to use to start the command. Not being a programmer, nor don't have I enough knowledge to get this cron command setup right and thus, the job keeps failing. I try to find some documentation to learn stuff like this, but either I'm searching for the wrong topics, or it's hard to find the right documentation. So if there's someone who can guide me in the right directions, I would be very thankful.
I'm trying to setup a cron job for a client website. I have to url's - one is a processing url, the other is a trigger url, both url's are like this;
trigger
and
processing
The suggestion is to set the trigger job to my needings, few times a day during working hours. The processing url needs to be called every x-minutes, for me every 15 minutes will be fine. I get the timing thing. Setting a schedule to make this work is not the issue. My issue is with setting up the command in the correct way. The thing I could use some help is with the command part.
Do I start the command like this; /usr/bin/wget - or will it be enough to only put wget as first part of the command? I read that since it's an url on the same server, I do not need to use CURL command, if I understand correctly, that is used to import from remote locations. In my case, all data is located in the same account where the website is located, within the DirectAdmin user. And than there are a series of letters which can be used to alter the output of the cron, -O, -s, -L, all sorts of stuff which I have a hard time finding out what all of those do or mean. I have no idea if I need those in my command line. In the examples given by the documentation I have from the Import-software, they show the cron jobs without any other addition to the cron command.
And another thing from the url to be called for with the cron, do i need to put that between "url" or 'url', does it matter if I use ' or "?
As you can see, a real NOOB here! I hope someone can help me in the right direction in understanding what I'm doing wrong, and why. I've tried searching for a document with all the parts to build up a cron command, but I've not been able to find a guide that helped me so far.
Many thanks in advance for any help!