Go Back   HostGator Peer Support Forums > Public Forums > Pre-Sales Questions

Notices

Reply
 
Thread Tools
  #1  
Old 03-09-2008, 11:27 AM
ched999 ched999 is offline
Hatchling Croc
 
Join Date: Mar 2008
Posts: 3
Default cron job for http

I am trying to run the following 'http://usernameassword@www.digitalpoint.com/tools/keywords/?action=login'
once a day at 03.43am.

I am trying to use a cron job inn cPanel using the standard con manager. I select the time and every day etc and put the ' http://usernameassword@www.digitalpoint.com/tools/keywords/?action=login'
in the command to run box.

But I get an error :
/bin/sh:
http:/*******:******@www.digitalpoint.com/tools/keywords/?action=lookupall: No
such file or directory

Any ideas what I am doing wrong?
Thanks
Reply With Quote
  #2  
Old 03-09-2008, 11:30 AM
quietFinn's Avatar
quietFinn quietFinn is offline
Emperor Croc
 
Join Date: Feb 2005
Posts: 2,731
Default Re: cron job for http

1. ask support to add your account to the get-users group

2. modify the crontab entry to be:
Code:
GET http://username:password@www.digitalpoint.com/tools/keywords/?action=login
__________________
quietFinn - netFinn Finland
"Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss
Reply With Quote
  #3  
Old 03-09-2008, 11:39 AM
ched999 ched999 is offline
Hatchling Croc
 
Join Date: Mar 2008
Posts: 3
Default Re: cron job for http

Cheers, I have just emailed support as the live chat is playing up.

Thanks
Reply With Quote
  #4  
Old 03-09-2008, 12:37 PM
jimbug's Avatar
jimbug jimbug is offline
Baby Croc
 
Join Date: Jan 2008
Location: California, USA
Posts: 83
Default Re: cron job for http

Quote:
Originally Posted by quietFinn View Post
1. ask support to add your account to the get-users group

2. modify the crontab entry to be:
Code:
GET http://username:password@www.digitalpoint.com/tools/keywords/?action=login
Doing this will expose the username and password in a ps auxww list or top -c. I would not do this! I would write a PHP script that used cURL to do it, or some other way. Just a warning.
__________________
Jim
http://www.jimbug.org/
Reply With Quote
  #5  
Old 03-09-2008, 05:53 PM
ched999 ched999 is offline
Hatchling Croc
 
Join Date: Mar 2008
Posts: 3
Default Re: cron job for http

Cheers for the advice. Do I have to contact support again to give me access to or install curl?

It seems like when support added me to the Get user group they messed up access to my cPanel as I can log in but just get blank pages.

Thanks
Reply With Quote
  #6  
Old 03-09-2008, 08:06 PM
jimbug's Avatar
jimbug jimbug is offline
Baby Croc
 
Join Date: Jan 2008
Location: California, USA
Posts: 83
Default Re: cron job for http

Quote:
Originally Posted by ched999 View Post
Cheers for the advice. Do I have to contact support again to give me access to or install curl?

It seems like when support added me to the Get user group they messed up access to my cPanel as I can log in but just get blank pages.

Thanks
You should already have cURL. You might get away with an fopen(). I would have to test that to be sure it wouldn't show up in ps. I don't think it would. Without testing, I can't say 100%. You might be able to do it with perl with LWP::Simple. Not sure if that would show up in ps without testing. cURL works great, though.
__________________
Jim
http://www.jimbug.org/
Reply With Quote
  #7  
Old 03-12-2008, 05:20 AM
Parsifal Parsifal is offline
Hatchling Croc
 
Join Date: Mar 2008
Posts: 13
Default Re: cron job for http

you got that error because you have params ?blah=x in your link
I did not test if you can escape it with \, but as previous post said you can use curl if the link has params.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 05:08 AM.

 
Forum SEO by Zoints