How to run PHPList in the Command Line [solved]

Hi,
Firstly I know this has been asked a million times and endless topics seem to be present, so sorry for posting again but i have searched and searched and found nothing helpful.
I simply want to run the process queue method in the command line, as a have a fair amount of user 10,000 + and I assume the web page will time out if I run it from the browser (even though it says safe to stop browser, is it really though?)
Ok I have set up the phplist script from the example. (via the docs)
But all I get when I run " ./phplist -pprocessqueue " is a crap load of HTML that gets spit out.
Looking at the HTML I can see its producing the login page.
Ok, fine, on further searching I have found people passing the username and paasword variable. (even though it says nothing about this in the docs???)
So I try " ./phplist -pprocessqueue login=MYUSER password=MYPASSWORD "
This time it doesn't spit out a login page, but the main page (phplist :: PHPlist :: Main Admin Page) instead and not the processing queue page
I have also played with the $commandline_users = array();
I have tried it blank, and with my Cpanel username. Both without any joy, although I dont really see how this would suddenly stop it from spiting out HTML.
So back to the point really, why the hell is it spitting out loads of HTML ? Why doesn't it just output some friendly messages that I would expect stating what's going on with the processing.
Why is it outputting HTML?
Have I done something completely wrong? Is it supposed to output HTML, surely not?
Forgive me if im being very thick but I cant find any decent explanation as to how to simply run the process queue method in the command line, I dont even want to do it in a cron job yet! lol
Someone please enlighten me in some way, this is all very frustrating.
I am using the latest version 2.10.10
Hope someone can help,
Thanks,
Alex
Firstly I know this has been asked a million times and endless topics seem to be present, so sorry for posting again but i have searched and searched and found nothing helpful.
I simply want to run the process queue method in the command line, as a have a fair amount of user 10,000 + and I assume the web page will time out if I run it from the browser (even though it says safe to stop browser, is it really though?)
Ok I have set up the phplist script from the example. (via the docs)
But all I get when I run " ./phplist -pprocessqueue " is a crap load of HTML that gets spit out.
Looking at the HTML I can see its producing the login page.
Ok, fine, on further searching I have found people passing the username and paasword variable. (even though it says nothing about this in the docs???)
So I try " ./phplist -pprocessqueue login=MYUSER password=MYPASSWORD "
This time it doesn't spit out a login page, but the main page (phplist :: PHPlist :: Main Admin Page) instead and not the processing queue page

I have also played with the $commandline_users = array();
I have tried it blank, and with my Cpanel username. Both without any joy, although I dont really see how this would suddenly stop it from spiting out HTML.
So back to the point really, why the hell is it spitting out loads of HTML ? Why doesn't it just output some friendly messages that I would expect stating what's going on with the processing.
Why is it outputting HTML?
Have I done something completely wrong? Is it supposed to output HTML, surely not?
Forgive me if im being very thick but I cant find any decent explanation as to how to simply run the process queue method in the command line, I dont even want to do it in a cron job yet! lol
Someone please enlighten me in some way, this is all very frustrating.
I am using the latest version 2.10.10
Hope someone can help,
Thanks,
Alex