我有开机运行在领新启动脚本:运行一圈请求
的/ etc /初始化/ selfconfig
#! /bin/sh
# /etc/init.d/selfconfig
USER=root
HOME=/root
export USER HOME
/usr/bin/perl /boot/coder_settings/saconfig.pl
exit 0
这个脚本运行的Perl脚本
/boot/coder_settings/saconfig.pl
#! /usr/bin/perl
lwp-request -m GET http://192.168.1.16:3000/hostname > /boot/coder_settings/hostname.txt
但我得到这个错误:
Search pattern not terminated at /boot/coder_settings/saconfig.pl line 3.
我在做什么错?
尝试:LWP请求-m GET 'http://192.168.1.16:3000/hostname'> /boot/coder_settings/hostname.txt – michael501 2014-10-30 22:52:37