1. Still use PHP script to execute. Command line fill in:
Then, in the cron.php page, use $argv[1] to get the value of the first parameter q1, and $argv[2] to get the value of the second parameter q2; the value of $argv[0] is the path and file name, which is: /home/jb51.net/public_html/cron.php Second, use the wget command. wget: A non-interactive network file grabbing tool under Linux. Fill in the command line:
Notice: wget usage: wget [options] [URL]
When the wget method passes multiple parameters in the URL, the & symbol needs to be escaped, that is, \&; in addition, the absolute path URL needs to be used. Third, you can try using curl The command is:
Note: Piaoyi tried it and the first command was not executed successfully under hostmonster's cron; the second command was executed successfully under the ixwebhosting host. This is the end of this article about Linux Cron scheduled execution of PHP code with parameters. For more relevant Cron scheduled execution of PHP content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: HTML displays ellipsis beyond the text... implemented through text-overflow
>>: CSS to implement QQ browser functions
Mybatis paging plug-in pageHelper detailed explan...
Table of contents Preface Detect Zookeeper servic...
Mixin method: The browser cannot compile: The old...
Preface I once encountered a difficult problem. I...
1. Document flow and floating 1. What is document...
Test: Chrome v80.0.3987.122 is normal There are t...
Table of contents Create a vue + ts project using...
Recently Microsoft released Windows Server 2016, ...
In the process of using Vue to develop projects, ...
CPU Load and CPU Utilization Both of these can re...
During the development activity, I encountered a ...
Table of contents 1. Insert statement 1.1 Insert ...
This article shares the specific code for JavaScr...
html ¶ <html></html> html:xml ¶ <h...
Introduction to Swap Swap (i.e. swap partition) i...