dutchy_nl3669
New Member
- Messages
- 21
- Reaction score
- 0
- Points
- 0
Hi,
I need some help setting up a cronjob. I got the cronjob working but with a "wget" code but it wont put the file it gets in the right location.
The code is:
"wget /home/XXX/public_html/sub_directory1/sub_directory2 ftp://*:*@11.22.33.44:21/the/right/directory/server.log"
The server log is downloaded from my location(the ftp link is then correct) to the "public_html" folder but it needs to go into "sub_directory2.
What is wrong with my code??
Next cronjob is how to execute a .sh file to update some stats. I know the location of that .sh file, I just dont know the right command.
This all needs to be done once a day, so the 5 minute between these jobs are not a problem.
For security reason I changed username and folder directories, but you get my drift here(I hope)
Hope someone can help me.
greetz dutchy
I need some help setting up a cronjob. I got the cronjob working but with a "wget" code but it wont put the file it gets in the right location.
The code is:
"wget /home/XXX/public_html/sub_directory1/sub_directory2 ftp://*:*@11.22.33.44:21/the/right/directory/server.log"
The server log is downloaded from my location(the ftp link is then correct) to the "public_html" folder but it needs to go into "sub_directory2.
What is wrong with my code??
Next cronjob is how to execute a .sh file to update some stats. I know the location of that .sh file, I just dont know the right command.
This all needs to be done once a day, so the 5 minute between these jobs are not a problem.
For security reason I changed username and folder directories, but you get my drift here(I hope)
Hope someone can help me.
greetz dutchy
Last edited: