我正在我的MediaTemple DV4上设置一个CRON作业来生成站点地图。要测试我通过命令行运行命令:
wget http://subdomain.website.com/?sm_command=build&sm_key=348791hdshjfjdkaiu34
我收到以下错误:
Reusing existing connection to subdomain.website.com:80.
这是完整的输出:
Resolving subdomain.website.com... 12.345.678.90
Connecting to subdomain.website.com|12.345.678.90|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://subdomain.website.com/wp-login.php?redirect_to=http%3A%2F%2Fsubdomain.website.com%2F%3Fsm_command%3Dbuild [following]
--2013-04-18 11:36:21-- http://subdomain.website.com/wp-login.php?redirect_to=http%3A%2F%2Fsubdomain.website.com%2F%3Fsm_command%3Dbuild
Reusing existing connection to subdomain.website.com:80.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `wp-login.php?redirect_to=http:%2F%2Fsubdomain.website.com%2F?sm_command=build.6'
有什么想法吗?
将URL放在单引号之间以防止特殊字符被解释
—
dawud
我的想法是,也许命令还没有从上次运行完成?我怀疑问题是w / wget还是cron,我会看看webervers日志。
—
叮当声