Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Pages: [1]
Send this topic | Print
Topic: /bin/sh: GET: command not found  (Read 4050 times)
« on: May 04, 2006, 08:55:41 AM »
doctor Offline
Newbie

View Profile
*
Posts: 23



Hi

One of my web-site www.googlersblogs.com requires hourly updates. I have a cron etry (set in the CPanel) that calls the update.php via the GET command. Everything worked fine for several months.

Today I've got a lot of error emails from the T35 root (from cron  probably) saying "/bin/sh: GET: command not found".
What's wrong and how to fix it?

Best Regards,
Artem.
Report to moderator   Logged

 
« Reply #1 on: May 04, 2006, 03:31:17 PM »
Alex Melen Offline
President / Founder
Administrator
Addict

View Profile WWW
*****
Posts: 2,148



Can you check the cron entry in Cpanel and see if its still there?
Report to moderator   Logged

« Reply #2 on: May 05, 2006, 12:08:30 AM »
doctor Offline
Newbie

View Profile
*
Posts: 23



Yes it is. And it looks like cron itself is working. Yesterday I was getting error emails every hour.
The cron entry in CPanel is as follows: 32 * * * * GET http://www.googlersblogs.com/cron.php > /dev/null
Report to moderator   Logged
« Reply #3 on: May 05, 2006, 05:35:08 AM »
doctor Offline
Newbie

View Profile
*
Posts: 23



And I keep getting the error reports. Once per hour. Did you deny access to the GET command? Smiley
Report to moderator   Logged
« Reply #4 on: May 05, 2006, 08:46:09 AM »
Alex Melen Offline
President / Founder
Administrator
Addict

View Profile WWW
*****
Posts: 2,148



Nope .. nothing was changed.. we are just completing the switch to the new servers and new data center (give it a few more hours to resolve for everyone.. new ip should end in .210). Hopefully that will solve the problem.
Report to moderator   Logged

« Reply #5 on: May 06, 2006, 03:37:08 AM »
doctor Offline
Newbie

View Profile
*
Posts: 23



I keep getting the error reports.
Are you sure it has to to something with the address update?

The error messages cron keeps sending to me are:
"/bin/sh: GET: command not found"

I would expect something like "site not found" if it was the domain name problem.
Report to moderator   Logged
« Reply #6 on: May 06, 2006, 04:49:05 AM »
Bret Craven Offline
Vice President
Administrator
Addict

View Profile
*****
Posts: 693



In your get syntax do you have an addon domain or the main domain on the account?
Report to moderator   Logged

Bret Craven
  Vice President
  Director of Customer Service
  cravenbw@t35.net
« Reply #7 on: May 06, 2006, 02:38:03 PM »
doctor Offline
Newbie

View Profile
*
Posts: 23



addon domain
my main domain is sanktrum.uni.cc
Report to moderator   Logged
« Reply #8 on: May 06, 2006, 02:55:29 PM »
Alex Melen Offline
President / Founder
Administrator
Addict

View Profile WWW
*****
Posts: 2,148



Is it still giving that error? We just finished the move to the new server/datacenter.
Report to moderator   Logged

« Reply #9 on: May 06, 2006, 02:56:56 PM »
doctor Offline
Newbie

View Profile
*
Posts: 23



The last error message came 23 minutes ago (according to GMail)
Report to moderator   Logged
« Reply #10 on: May 06, 2006, 08:24:34 PM »
Alex Melen Offline
President / Founder
Administrator
Addict

View Profile WWW
*****
Posts: 2,148



I tried running your command in ssh and 'GET' doesn't seem to be a valid command

root@server1 [~]# GET http://www.googlersblogs.com/cron.php > /dev/null
-bash: GET: command not found


Are you sure you don't mean to run wget ?
Report to moderator   Logged

« Reply #11 on: May 07, 2006, 04:13:42 AM »
doctor Offline
Newbie

View Profile
*
Posts: 23



Well, I know Unix very little, so I just copy-pasted the cron line from the Drupal.org recommendations and it worked well for several months until couple of days ago.
I tried changing the crontab entry to "wget http://www.googlersblogs.com/cron.php > /dev/null". It worked ok, cron executed successfully, but it is still not identical to my old good GET command.

GET emailed me only if some error happened during the execution and wget emails me always that is a bit too much. If you know how wget works, could you advise some command line arguments to suppress the standard output and to report only standard error output?
Report to moderator   Logged
« Reply #12 on: May 07, 2006, 11:03:00 AM »
Alex Melen Offline
President / Founder
Administrator
Addict

View Profile WWW
*****
Posts: 2,148



Are you sure you used Get before? I don't believe its a valid command in linux.
Report to moderator   Logged

« Reply #13 on: May 07, 2006, 12:25:54 PM »
doctor Offline
Newbie

View Profile
*
Posts: 23



Well, it worked for five months at least Smiley
The whole http://www.googlersblogs.com is built with the data fetched by the cron.php started by the GET command
Report to moderator   Logged
« Reply #14 on: May 07, 2006, 05:11:35 PM »
Alex Melen Offline
President / Founder
Administrator
Addict

View Profile WWW
*****
Posts: 2,148



Apparently newer kernels don't allow it because its a security issue. You will have to use wget.
Report to moderator   Logged

 
Pages: [1]
Send this topic | Print
Jump to:  

Powered by SMF | SMF © 2006-2008, Simple Machines LLC