/bin/sh: line 1: GET: command not found

XPerties

Well-Known Member
Apr 10, 2003
401
0
166
New Jersey, USA
Moved some sites to a new server and now my crons get the following error:

/bin/sh: line 1: GET: command not found

What perl module is GET associated with that I should make sure it's properly installed? I thought it was LWP but installing that did no good.
 

Zaf

Well-Known Member
Aug 22, 2005
117
0
166
The cronjob you are mentioning looks like a Bash script and not Perl. Could try and help you if you can paste the entire cron file here. I guess the error is not pertaining to line 1 of your script even.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,466
31
473
Go on, have a guess
You need to either

1. Install the perl-libwww-perl to get GET

or

2. install the LWP perl module manually and make sure you answer yes to:

Do you want to install the GET alias? [n]
 

Website Rob

Well-Known Member
Mar 23, 2002
1,504
1
318
Alberta, Canada
cPanel Access Level
Root Administrator
Chirpy, that's a right handy piece of information.

You would not believe how many people I've asked on where to get 'GET', as it is no longer installed by default, not since Linux 9 anyway. Even some very knowledgeable people had no idea. I thought I was going crazy. :eek:

Turns out I just got better at using 'wget' and the necessary switches. :D
 

b0072k1

Well-Known Member
Dec 30, 2004
132
0
166
Glasgow
Cheers for the info my server never installed get, for a few cron jobs :d like for whmautopilot and such