Cron job walkthrough

Solutions for other advanced phplisters

Postby Balitas » 6:06am, Sun 19 Nov, 2006

The title of the email said Cron Daemon, this is the error email you mentioned right?
Need a website? Enter to www.balitas.com
Balitas
PL Geek
 
Posts: 82
Joined: 2:17am, Mon 13 Feb, 2006

Postby evidenthost » 6:10am, Sun 19 Nov, 2006

tell me what is in the email?
evidenthost
PL Nut
 
Posts: 27
Joined: 3:58am, Fri 17 Nov, 2006
Location: Canada - West Vancouver

Postby evidenthost » 6:12am, Sun 19 Nov, 2006

No, 'Cron Daemon' is just a email subject, not necessarily an error. tell me what is in the email?
evidenthost
PL Nut
 
Posts: 27
Joined: 3:58am, Fri 17 Nov, 2006
Location: Canada - West Vancouver

Postby Balitas » 6:12am, Sun 19 Nov, 2006

The email said this:


<using>
<DOCTYPE>

<html><head>
<meta>
<meta>
<link>
<link>
<link>
<link>
<meta>
<meta>
<meta>
<meta>

<script></script><meta><meta><title>PHPlist :: PHPlist :: Send message queue</title>
<link>
</head>
<body>
<a></a>
<div>
<table>
<tr>
<td><img></td>
<td><img></td>
<td><img></td>
</tr>

<tr>
<td>
<TOP>
<TABLE>
<TR>
<TD><a><img></a></TD>
<TD><FONT>&nbsp;<I>powered by: </I><BR>&nbsp;<B>[<A><I>PHP</I></A>]</B> + <B>[<A>mySQL</A>]</B></FONT></TD></TR>
<TR>
<TD><SPAN>PHPlist</SPAN></TD></TR>
<TR>
<TD><IMG></TD>
<TD><IMG></TD>
<TD><IMG></TD></TR>
<TR>
<TD>&nbsp;</TD>
<td><div>
<br>
<p>PHPlist - send message queue</p><div><br><form><select><option>Deutsch </option><option>English </option><option>espa&ntilde;ol</option><option>fran&ccedil;ais </option><option>portugu&ecirc;s </option><option>Traditional Chinese</option></select></form></div><p>This document requires you to log in<br>
<font></font>
<p>
<script>

if (!navigator.cookieEnabled) {
document.writeln('<div>In order to login, you need to enable cookies in your browser</div>');
}

</script>
<form>
<input>
<table>

<tr><td><span>Name:</span></td></tr>
<tr><td><input></td></tr>

<tr><td><span>Password:</span></td></tr>
<tr><td><input></td></tr>

<tr><td><input></td></tr></table>

<br>
<p><hr></p>
<b>Forgot Password?:</b><br>
Enter your email: <input><br><br>
<input>

</form></div>
</td>
<td>
<div>
<span><a>main page</a><br></span><span><a>about phplist</a><br></span></div>
</td>
</tr>




<tr><td>&nbsp;</td></tr>



<tr><td>&nbsp;</td></tr>
</table>
<TOP>

</td></tr>


<tr>
<td><img></td>
</tr>

<tr>
<td><img></td>
<td>&copy; <a>tincan limited</a> | <span>PHPlist powered by </span><a>PHPlist</a> - version 2.10.2</td>
<td><img></td>
</tr>

<tr>
<td><img></td>
</tr>

<tr>
<td><img></td>
</tr>

<tr>
<td>
&nbsp;
</td>
</tr>
</tbody>
</table>

</div>
</body></html>

I'm trying with the second command you mentioned and I don't receive any cron daemon email.
Need a website? Enter to www.balitas.com
Balitas
PL Geek
 
Posts: 82
Joined: 2:17am, Mon 13 Feb, 2006

Postby Balitas » 6:14am, Sun 19 Nov, 2006

With the second command I receive emails but not have content, only:

No input file specified.

I think the first one is the correct, right?
Need a website? Enter to www.balitas.com
Balitas
PL Geek
 
Posts: 82
Joined: 2:17am, Mon 13 Feb, 2006

Postby evidenthost » 6:18am, Sun 19 Nov, 2006

Congratulations, the email you got from the first command means it runs correctly. You don't need second and third command to test. Just use the first one with your desired time shedule.
evidenthost
PL Nut
 
Posts: 27
Joined: 3:58am, Fri 17 Nov, 2006
Location: Canada - West Vancouver

Postby evidenthost » 6:23am, Sun 19 Nov, 2006

[EDITED by myself!]
Last edited by evidenthost on 7:00am, Sun 19 Nov, 2006, edited 1 time in total.
evidenthost
PL Nut
 
Posts: 27
Joined: 3:58am, Fri 17 Nov, 2006
Location: Canada - West Vancouver

Postby evidenthost » 6:26am, Sun 19 Nov, 2006

Sorry, I looked into the email more further!

This document requires you to log in
<font></font>
<p>
<script>
if (!navigator.cookieEnabled) {
document.writeln('<div>In order to login, you need to enable cookies in your browser</div>');
}


it seems the cron could not login! try third command and tell me what's happening?
evidenthost
PL Nut
 
Posts: 27
Joined: 3:58am, Fri 17 Nov, 2006
Location: Canada - West Vancouver

Postby evidenthost » 6:29am, Sun 19 Nov, 2006

The cron could not login to the code.
did you edit &login=USERNAME&password=PASSWORD in your curl -s command correctly to reflect your phplist username and passowrd?
evidenthost
PL Nut
 
Posts: 27
Joined: 3:58am, Fri 17 Nov, 2006
Location: Canada - West Vancouver

Postby Balitas » 6:34am, Sun 19 Nov, 2006

Damn man you are genius.

I try the first one and it works! My emails not stop, I try it for 5 minutes and phplist continues sending emails! Before do this it stop at 2 minutes, but with your help now never stops!

The only thing is every minute I receive each cron daemon email, but I think if I use a false email I will not receive them right?

Regards.
Need a website? Enter to www.balitas.com
Balitas
PL Geek
 
Posts: 82
Joined: 2:17am, Mon 13 Feb, 2006

Postby Balitas » 6:36am, Sun 19 Nov, 2006

Excuse me, the second command is the solution!
Need a website? Enter to www.balitas.com
Balitas
PL Geek
 
Posts: 82
Joined: 2:17am, Mon 13 Feb, 2006

Postby evidenthost » 6:40am, Sun 19 Nov, 2006

I did not tell you how to not receove cron daemon because I wanted you to get the email to see what is in it to check if the command did work on your server or not.

Now, if you want to not receive cron daemon email all you need to do is appending this at the end of the command
> /dev/null
evidenthost
PL Nut
 
Posts: 27
Joined: 3:58am, Fri 17 Nov, 2006
Location: Canada - West Vancouver

Postby Balitas » 6:42am, Sun 19 Nov, 2006

So I put the command like this?

php -q /home/USERNAME/public_html/lists/admin/index.php?page=processqueue&login=USERNAME&password=PASSWORD > /dev/null
Need a website? Enter to www.balitas.com
Balitas
PL Geek
 
Posts: 82
Joined: 2:17am, Mon 13 Feb, 2006

Postby evidenthost » 6:52am, Sun 19 Nov, 2006

Yes.
evidenthost
PL Nut
 
Posts: 27
Joined: 3:58am, Fri 17 Nov, 2006
Location: Canada - West Vancouver

Postby Balitas » 7:18am, Sun 19 Nov, 2006

Now everything is fine thanks for your help I apprciate it :)
Need a website? Enter to www.balitas.com
Balitas
PL Geek
 
Posts: 82
Joined: 2:17am, Mon 13 Feb, 2006

PreviousNext

Return to Advanced Answers, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 1 guest