|
#1
|
|||
|
|||
|
I am trying to run the following 'http://username
assword@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://username assword@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 |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
|||
|
|||
|
Cheers, I have just emailed support as the live chat is playing up.
Thanks |
|
#4
|
||||
|
||||
|
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.
|
|
#5
|
|||
|
|||
|
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 |
|
#6
|
||||
|
||||
|
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.
|
|
#7
|
|||
|
|||
|
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. |
![]() |
| Bookmarks |
| Thread Tools | |
|
|