GET command找不到

谷歌的:

On running a cronjob with get command, I was getting the following error.

/bin/sh: GET: command not found

The reason was “get” command was missing from the server  and you need to install libwww

Fix :

yum list|grep libwww

yum install perl-libwww-perl

If it is not available in yum, you can do using cpan

cpan
install Bundle::LWP

If the get command is still missing do the following

cp /usr/bin/lwp-request /usr/bin/GET

which GET

/usr/bin/GET

posted @ 2016-11-16 14:16  Hotsum  阅读(296)  评论(0)    收藏  举报