cancel
Showing results for 
Search instead for 
Did you mean: 

Cronjob help!!!

N/A

Cronjob help!!!

Can anyone help, I'm knew to perl and recently bought a script for my web site that requires cron to work the automail, accordingly, it is a simple matter to get the cronjob working by dialing up telnet on the server which I found was through the start > run menu, which is fine but, after signing in and typing crontab cronjob, the command line initially came back with 'no such file or directory', so I did a whole lot of read up on free-online support - tutorials etc and can find no help, tried 'cd;pwd' at the command and even managed to get right into the cgi-bin but I don't seem to be able to find the 'cronjob' file, I've tried 'cronjob.pl', nothing works! I had already set up the details inside to go at ten minute intervals as a test, which was recommended in the readme and set it to point to 'perl ./automail.cgi y' which is the automail script which will send the 7 email scripts in this case, (I put the email scripts in a folder, which is fine), which incidentally starts off ok as far as storing the details, but nothing is sent through my webmaster email and no email sent to my spare email, I used a spare email and psuedonism in numerous tests while trying to get it to work, but I just can't seem to activate it - 3 days of reading up and trying various different paths to the file have failed - I don't give up easily and believe
the best way to learn is by trial and error but this takes the biscuit!

So any help at all would be very much appreciated indeed!
21 REPLIES
N/A

Cronjob help!!!

In theory what you need to do is to create a plain text file with your cron job in. In the format...
MIN HR DAY MTH DOW /path/to/the/script/you/wnat/to/run.cgi

call it something (like cron.tab) and upload it to the root of your cgi space. The log in with telnet. The simply type
crontab cron.tab

at the prompt. This will load your job into cron. You can check this by using
crontab -l

to list your scheduled jobs. It should then be showing and run at the right time.
N/A

Cronjob help!!!

N/A

Cronjob help!!!

Quote
In theory what you need to do is to create a plain text file with your cron job in. In the format...
MIN HR DAY MTH DOW /path/to/the/script/you/wnat/to/run.cgi

call it something (like cron.tab) and upload it to the root of your cgi space. The log in with telnet. The simply type
crontab cron.tab

at the prompt. This will load your job into cron. You can check this by using
crontab -l

to list your scheduled jobs. It should then be showing and run at the right time.




Thanks for the reply - I did read about how to set up a cron in the help and support sections but i assumed that it meant actually writing the whole script out myself whilst being online, which appaered to be a bigger task than my very limited knowledge of perl etc would allow.]

[Moderator's note (by csogilvie): BBCode Fixed for you]
N/A

Cronjob help!!!

Quote
There is a tutorial on Cron Jobs at http://portal.free-online.net/central/forums/viewtopic.php?t=1095


Thank you Colin for your reply,

I have been to the help and support sections and even saved the page and after reading through the material I assumed, wrongly, that this information was about how to make a cronjob whilst online, which appeared to be a bigger job than my limited knowledge of perl would allow - I shall set about re-reading it and try again. Thanks Marcus
N/A

Cronjob help!!!

Well I've tried out all the available options and can't seem to get Telnet to work properly logged in and typed 'crontab crontab' and the reply is "no such file or directory", tried 'cd;pwd' typed in and at the command typed 'crontab cronjob' got the same reply as before - even typed / and got ':/' is a directory, typed '/crontab cronjob' - no such file or directory.

Where am I going wrong.

any help would be very much appreciated.

Read all available Help, Support and Tutorials on Free-online but they generally say dial up Telnet, log in and simply type 'cront cronjob' which I have done zilions of times - no good.

The script I uploaded is in the 'root folder' but will not activate.
N/A

Cronjob help!!!

Quote
Well I've tried out all the available options and can't seem to get Telnet to work properly logged in and typed 'crontab crontab' and the reply is "no such file or directory"


It's not
crontab crontab


it's
crontab filename.ext

where filename.ext is the text file that contains your job instruction.

For example if you wanted to run the file myscript.cgi at 20 past every hour then, assuming myscript.cgi is in your cgi-bin directory, then you need to do the following...

1. Create a text file (let's call it myjob.txt) which reads as follows:
20 * * * * /files/home?/marcosoh/cgi-bin/myscript.cgi

[you will need to change the ? after home to the correct number if you type cd;pwd at the telnet prompt it will give you the correct path.]

2. Load this file to the root of your cgi space (using ftp).

3. Open telnet and log in to cgi.free-online.net

4. Type
crontab myjob.txt

this will load your job into cron

5. Check it's worked by typing
crontab -l

this will show your job.
N/A

Cronjob help!!!

WELL... Thank you gmsmalley :-)

I have not been back to look for an answer for a couple of days, so I am sorry if this reply is a bit late in coming - it is much appreciated and I will do as you sugest.

Once again Cheers for your help!

Marcus
N/A

Cronjob help!!!

Hi gmsmalley,

Tried everything you suggested for a few hours - no joy. :?

It doesn't seem to recognise the term 'crontab'
No such file or directory' is what came back at the command.

typed in the path correctly got to the file and was recognised but when I typed 'crontab myjob.txt' it came back with 'crontab:' No such file or directory,
who is at fault here me or the isp

I have a named folder which I typed in the name of - and typed the homex number in too!!!

It recognises the existance of the folder where everything is stored - yet nothing inside is recognised - weird or whatHuh?

typed in - /files/homex/marcusoh/cgi-bin/folder name/crontab myjob.txt

no recognition
came back with 'No such file or directory
yet it recognised my folder's name

Any suggestions, please - greatly appreciated!
N/A

Cronjob help!!!

marcosoh,

Log in to telnet and type
cd;pwd
at the prompt. Copy and paste the result here along with the contents of the file "myjob.txt"

Where have you put "myjob.txt"? and what is the path to the script you want to run?

Post these here and I'll see if I can see where you've gone wrong.
N/A

Cronjob help!!!

Thanks gmsmalley, I really appreciate it!!
Typed in cd;pwd – the result is:
/files/home2/marcusoh

My personal email is: marcusoh@supanet.com if you prefer to send a response to me there then that’s fine.

I have created a folder in my cgi-bin called ‘impact’ to which I have uploaded the following files: (I can get into this folder by typing cd cgi-bin/impact/ and can crontab etc)
The cgi script is called:

automail.cgi
(Inside of which is called ‘automail.cgi y’ due to the following expression:
$script_name = "automail.cgi";
$shell = shift @ARGV;

if ($shell eq "y"){
$Config{'recipient'} = $youremail;
&
exit;
})
Also inside the impact folder is: cronjob (No txt etc or other expression proceeding the file name)

cronjob – contains the following info - */10 * * * * /files/home2/marcusoh/cgi-bin/impact/automail.cgi y

(This should send emails back at 10 minute intervals at present – for test purposes)
(I am able to telnet into the folder using the ‘cd’ command, I am also able to ‘crontab cronjob’ successfully.)

Inside the impact folder I have another folder called ‘text’
Inside the text folder the following is contained:
email0.txt
email1.txt
email2.txt
email3.txt
email4.txt
email5.txt
email6.txt
Each emailX can contain various info to send to the subscribers and when properly set can go out at daily or weekly intervals.
Inside automail.cgi the script will also save the email details of whoever subscribes to my course that is advertised in the web site’s popup window, these details are saved as a listx.txt, (The x is a number from 1 to 6 according to the number of the email that has gone to the subscriber, so if each email is daily so the listx.txt builds daily to list2.txt and then up to list6.txt up to - finalist.txt) This is done inside the text folder and they are created under the emails. At present the list starts OK at list1.txt with me subscribing and using my various spare email details but obviously because I can’t get it all up and running list2 up to finalist.txt do not get created and also I do not even receive any email.

This is what is contained in the top section of automail.cgi : -

#Note: Keep the file name as "automail.cgi" or
# change the "$script_name" variable on the first
# line of the script

#Note: If you want people on other servers to
# be able to use the script, without listing
# them all in "@referers", put a "#" sign
# infront of "&check_url;" which is about
# ten lines into the script.


# Modify the address to that of your mail server.... #
$mailprog = 'usr/sbin/sendmail';

# @referers allows forms to be located only on servers which are defined #
# in this field. This security fix from the last version which allowed #
# anyone on any server to use your FormMail script on their web site. #

@referers = ('www.chronic-fatigue-help.co.uk','cgi.free-online.net','cgi.marcusoh.free','homepages.free-online.net','marcusoh.free-online.net','homepages.free','www.marcusoh.free-online.co.uk');

# $keepmailing is the number of responses being mailed to the user #

$keepmailing = 6;

# $list is the file that stores the email address and name of user #
# ie $list[1] will contain the email addresses for the 1st response to be sent #
# $list[2] will contain the email addresses for the 2nd response to be sent #
# These files will be created by the script, you just need to define the path #
$list[1] = "/files/home2/marcusoh/cgi-bin/impact/text/list1.txt";
$list[2] = "/files/home2/marcusoh/cgi-bin/impact/text/list2.txt";
$list[3] = "/files/home2/marcusoh/cgi-bin/impact/text/list3.txt";
$list[4] = "/files/home2/marcusoh/cgi-bin/impact/text/list4.txt";
$list[5] = "/files/home2/marcusoh/cgi-bin/impact/text/list5.txt";
$list[6] = "/files/home2/marcusoh/cgi-bin/impact/text/list6.txt";

# $list[7] (or $list[$keepmailing+1]) is the file where email addresses are stored after all of the #
# emails have been sent #

$list[7] = "/files/home2/marcusoh/cgi-bin/impact/text/finallist.txt";
foreach ($j = $keepmailing+1;$j >0;$j--) {
$lok[$j]="$list[$j].lok";
}
# $email[0] is the file that stores the subject line and body of initial email #

$email[0] = "/files/home2/marcusoh/cgi-bin/impact/text/email0.txt";

# $email is the file that stores the subject line and body of email #
# ie $email[1] will contain the subject line and body for the 1st response #
# ie $email[2] will contain the subject line and body for the 2nd response #

$email[1] = "/files/home2/marcusoh/cgi-bin/impact/text/email1.txt";
$email[2] = "/files/home2/marcusoh/cgi-bin/impact/text/email2.txt";
$email[3] = "/files/home2/marcusoh/cgi-bin/impact/text/email3.txt";
$email[4] = "/files/home2/marcusoh/cgi-bin/impact/text/email4.txt";
$email[5] = "/files/home2/marcusoh/cgi-bin/impact/text/email5.txt";
$email[6] = "/files/home2/marcusoh/cgi-bin/impact/text/email6.txt";

# $youremail is the email address that emails are sent from #
# details of new user is also sent to this address #

$youremail = "Marcus Henson <marcusoh\@marcusoh.free-online.co.uk>";

# $header & $footer are the paths to the header and footer files for output #
$header = "/files/home2/marcusoh/cgi-bin/impact/header.html";
$footer = "/files/home2/marcusoh/cgi-bin/impact/footer.html";


# Done NOTHING BELOW THIS LINE NEEDS TO BE ALTERED! #
##############################################################################
$script_name = "automail.cgi";
$shell = shift @ARGV;

if ($shell eq "y"){
$Config{'recipient'} = $youremail;
&
exit;
})
else {
# Parse Form Contents
&parse_form;
$Config{'recipient'} = $youremail;

I hope you can help, as I have got into a real quandary with all this!

Gmsmalley, if you would like the full blown version of this package as a method of paying for your help then use my email address at the top and I will send a zipped folder by return!!

Thanks again, Marcus
N/A

Cronjob help!!!

Right,

1st - What happens when you run automail.cgi? Does it work as a script? That is if you type
cgi-bin/impact/automail.cgi y
at the telnet prompt do you receive an email? If not then you'll not get anything out of cron because all cron does is type that every 10 minutes!

2nd - Move "cronjob" to your root directory (one level above cgi-bin). Type
crontab cronjob
at the telnet prompt. What do you see if you then type
crontab -l
at the telnet prompt?

Post the results for both steps here and we'll take it from there.
N/A

Cronjob help!!!

OK!

I uploaded cronjob with new internal configuration:
MAILTO=marcusoh@marcusoh.free-online.co.uk
0-59/10 * * * * /files/home2/marcusoh/cgi-bin/impact/automail.cgi

It now doesn’t have the ‘y’ at the end as cron didn’t recognise the file with it in! Also wrote out the front end as: 0-59/10 instead of */10 as I’d seen it written somewhere and it was worth a try as nothing else worked.

(NOTE) Nothing but a new command line came up until I cropped the ‘y’ off the end!!

I have copied and pasted the contents below

Here’s what came up in telnet:

You have new mail.
marcusoh@cgi02 marcusoh $ cgi-bin/impact/automail.cgi y
marcusoh@cgi02 marcusoh $ cgi-bin/impact/automail.cgi
Content-type: text/html

<html>
<head>
<title>Error: Request Method</title>
</head>
<body bgcolor=#FFFFFF text=#000000>
<center>
<table border=0 width=600 bgcolor=#9C9C9C>
<tr><th><font size=+2>Error: Request Method</font></th></tr>
</table>
<table border=0 width=600 bgcolor=#CFCFCF>
<tr><td>The Request Method of the Form you submitted did not match
either <tt>GET</tt> or <tt>POST</tt>. Please check the form and make sure the
<tt>method=</tt> statement is in upper case and matches <tt>GET</tt> or <tt>POST</tt>.<p>

</td></tr>
</table>
</center>
</body>
</html>
marcusoh@cgi02 marcusoh $ crontab cronjob
marcusoh@cgi02 marcusoh $ crontab -l
MAILTO=marcusoh@marcusoh.free-online.co.uk
0-59/10 * * * * /files/home2/marcusoh/cgi-bin/impact/automail.cgimarcusoh@cgi02 marcusoh $

(This is a part of the automail.cgi about 2/3rds down) Even error pages written after this work – for instance if I miss my name out on the popup page an error message runs saying not all parts were filled in, click your browser’s back button and try again.)

This is what html is written on my popup page form:

<FORM ACTION="http://cgi.marcusoh.free-online.co.uk/cgi-bin/impact/automail.cgi" METHOD="POST">

I cannot see a problem with that!

I have also found that if I write the automail.cgi internal file paths as follows I can get 1 email out and also as usual the list starts at list1.

Writing the following makes anything in the cgi-bin work ./
For instance at the command line writing this ./automail.cgi will run the file, but it runs to the same point as above :

#!/usr/bin/perl
#***********************************************
#* This "Smart Personalised Autoresponder" *
#* script is copyright 2000, Neil Shearing, *
#* Scamfree LLC. Unauthorised distribution *
#* is a violation of federal law and will *
#* not be tolerated. Should you wish to *
#* profit from selling this script, we *
#* encourage you to join our reseller program *
#* http://scamfreezone.com/assocs/ *
#***********************************************

#Note: Keep the file name as "automail.cgi" or
# change the "$script_name" variable on the first
# line of the script

#Note: If you want people on other servers to
# be able to use the script, without listing
# them all in "@referers", put a "#" sign
# infront of "&check_url;" which is about
# ten lines into the script.


# Modify the address to that of your mail server.... #
$mailprog = '/usr/sbin/sendmail';

# @referers allows forms to be located only on servers which are defined #
# in this field. This security fix from the last version which allowed #
# anyone on any server to use your FormMail script on their web site. #

@referers = ('www.marcusoh.free','www.chronic-fatigue-help.co.uk','cgi.free-online.net','cgi.marcusoh.free','homepages.free-online.net','marcusoh.free-online.net','homepages.free','www.marcusoh.free-online.co.uk');

# $keepmailing is the number of responses being mailed to the user #

$keepmailing = 6;

# $list is the file that stores the email address and name of user #
# ie $list[1] will contain the email addresses for the 1st response to be sent #
# $list[2] will contain the email addresses for the 2nd response to be sent #
# These files will be created by the script, you just need to define the path #
$list[1] = "./text/list1.txt";
$list[2] = "./text/list2.txt";
$list[3] = "./text/list3.txt";
$list[4] = "./text/list4.txt";
$list[5] = "./text/list5.txt";
$list[6] = "./text/list6.txt";

# $list[7] (or $list[$keepmailing+1]) is the file where email addresses are stored after all of the #
# emails have been sent #

$list[7] = "./text/finallist.txt";
foreach ($j = $keepmailing+1;$j >0;$j--) {
$lok[$j]="$list[$j].lok";
}
# $email[0] is the file that stores the subject line and body of initial email #

$email[0] = "./text/email0.txt";

# $email is the file that stores the subject line and body of email #
# ie $email[1] will contain the subject line and body for the 1st response #
# ie $email[2] will contain the subject line and body for the 2nd response #

$email[1] = "./text/email1.txt";
$email[2] = "./text/email2.txt";
$email[3] = "./text/email3.txt";
$email[4] = "./text/email4.txt";
$email[5] = "./text/email5.txt";
$email[6] = "./text/email6.txt";

# $youremail is the email address that emails are sent from #
# details of new user is also sent to this address #

$youremail = "Marcus Owen-Henson <marcusoh\@marcusoh.free-online.co.uk>";

# $header & $footer are the paths to the header and footer files for output #
$header = "/files/home2/marcusoh/cgi-bin/impact/header.html";
$footer = "/files/home2/marcusoh/cgi-bin/impact/footer.html";

# Done NOTHING BELOW THIS LINE NEEDS TO BE ALTERED! #

Any ideas?

I’ve changed the automail.cgi back to the one with full paths in it now though.

I’ve tried all kinds of cronjob permutations during the last two days, even saved them all, other than what I’ve tried I haven’t a clue!

What’s supposed to happen is the webmaster receives immediate notification of a new subscriber, the subscriber receives the 1st of their emails and the rest are then spaced out over the coming days, so whatever happens I should receive an immediate email and the lists start.

The automail script even provides an admin interface and that is accessible online so that I can alter any email contents and access the lists right through – no problem there!

From Free-online: Tutorials & FAQs: CGI: cron Task Scheduler
Notice that the php command is specified using an absolute path because cron will not be able to find it otherwise. If it was not specified, the script.php will fail to execute and an error like: php not found will be reported in the email you receive or in Mailbox. You may not spot this, especially if you run it successfully from the $ prompt as php /absolute/path/to/script.php or even php script.php if it is in the current directory. Also note $HOME is being used instead of /files/home/username/

Found out where command is:

marcusoh@cgi01 marcusoh $ whereis command
command: /usr/bin/command /usr/share/man/man1/command.1.gz
marcusoh@cgi01 marcusoh $

Tried:

MAILTO=marcusoh@marcusoh.free-online.co.uk
*/10 * * * * /usr/bin/command/files/home2/marcusoh/cgi-bin/impact/automail.cgi

MAILTO=marcusoh@marcusoh.free-online.co.uk
*/10 * * * * $HOME/cgi-bin/impact/automail.cgi (Tested 1200)

MAILTO=marcusoh@marcusoh.free-online.co.uk
*/10 * * * * /usr/bin/command/files/home2/marcusoh/cgi-bin/impact/automail.cgi

MAILTO=marcusoh@marcusoh.free-online.co.uk
*/10 * * * * /usr/bin/files/home2/marcusoh/cgi-bin/impact/automail.cgi

MAILTO=marcusoh@marcusoh.free-online.co.uk
*/10 * * * * /usr/local/bin/command/files/home2/marcusoh/cgi-bin/impact/automail.cgi y

MAILTO=marcusoh@marcusoh.free-online.co.uk
*/10 * * * * /usr/local/bin/files/home2/marcusoh/cgi-bin/impact/automail.cgi

MAILTO=marcusoh@marcusoh.free-online.co.uk
*/10 * * * * #!/usr/bin/perl /files/home2/marcusoh/cgi-bin/impact/automail.cgi (Tested 1215)

MAILTO=marcusoh@marcusoh.free-online.co.uk
*/10 * * * * /usr/local/bin/cgi $HOME/cgi-bin/impact/automail.cgi (Tested at 12:33 Fri)

MAILTO=marcusoh@marcusoh.free-online.co.uk
*/10 * * * * /usr/local/bin/cgi $HOME/cgi-bin/impact/automail.cgi

And as it stands now:

MAILTO=marcusoh@marcusoh.free-online.co.uk
0-59/10 * * * * /files/home2/marcusoh/cgi-bin/impact/automail.cgi

You have new mail.
marcusoh@cgi02 marcusoh $ crontab -r
remove crontab for marcusoh? yes
marcusoh@cgi02 marcusoh $ crontab cronjob
marcusoh@cgi02 marcusoh $ crontab -l
MAILTO=marcusoh@marcusoh.free-online.co.uk
0-59/10 * * * * /files/home2/marcusoh/cgi-bin/impact/automail.cgimarcusoh@cgi02 marcusoh $

I used the ‘exit’ command at the command line when leaving telnet. I have chmodded everything correctly and have done this at each change of anything inside the cgi-bin – very methodical and time consuming too!

I have not got a clue!!
N/A

Cronjob help!!!

I think it might be your script, Marcusoh. Either way it is time for some debugging.

Create a script using the following code...
#!/usr/bin/perl

$recip="marcusoh\@marcusoh.free-online.co.uk";
$subj="testing";
open (MAIL, "| /usr/sbin/sendmail -t") or die("$!\n");
print MAIL "To: $recip\n";
print MAIL "From: $recip\n";
print MAIL "Subject: $subj\n";
print MAIL "This is a test email\n";
close (MAIL);
...call it "test.pl" and place this in your /cgi-bin/ directory. (I know this script works because I have tested it on my account.)

Then alter your file "cronjob" so that if reads...
MAILTO=marcusoh@marcusoh.free-online.co.uk

0-59/10 * * * * /files/home2/marcusoh/cgi-bin/test.pl

then, at the telnet prompt type
crontab cronjob

and then
crontab -l

to make sure it reads
MAILTO=marcusoh@marcusoh.free-online.co.uk

0-59/10 * * * * /files/home2/marcusoh/cgi-bin/test.pl


Now you should get an email every 10 minutes. If this works then the problem lies with the script "automail.cgi" and not with cron. If you don't get an email every 10 minutes then log into telnet and type...
cgi-bin/test.pl

at the prompt and see it you get an email then.

Post with your results and we'll take it from there.
N/A

Cronjob help!!!

Ok gmsmalley, here’s what happened when I telnetted what you gave me: -

marcusoh@cgi05 marcusoh $ crontab cronjob
marcusoh@cgi05 marcusoh $ crontab -l
MAILTO=marcusoh@marcusoh.free-online.co.uk
0-59/10 * * * * /files/home2/marcusoh/cgi-bin/test.plmarcusoh@cgi05 marcusoh $

I chmodded the cronjob to 777 and test.pl to 755

I waited over half an hour after I did as you suggested and received just 1 email.
This is a test email

marcusoh@cgi05 marcusoh $ crontab cronjob
marcusoh@cgi05 marcusoh $ crontab -l
MAILTO=marcusoh@marcusoh.free-online.co.uk
*/10 * * * * /files/home2/marcusoh/cgi-bin/test.plmarcusoh@cgi05 marcusoh $

I left it for over half an hour again and I had no emails received at all with the above configuration!

So, I changed it to –

MAILTO=marcusoh@marcusoh.free-online.co.uk
0-59/5 * * * * /files/home2/marcusoh/cgi-bin/test.pl

This is the telnet result at 4:47p.m:

You have new mail.
marcusoh@cgi02 marcusoh $ crontab -l
MAILTO=marcusoh@marcusoh.free-online.co.uk
*/10 * * * * /files/home2/marcusoh/cgi-bin/test.plmarcusoh@cgi02 marcusoh $ crontab -r
remove crontab for marcusoh? yes
marcusoh@cgi02 marcusoh $ crontab cronjob
marcusoh@cgi02 marcusoh $ crontab -l
MAILTO=marcusoh@marcusoh.free-online.co.uk
0-59/5 * * * * /files/home2/marcusoh/cgi-bin/test.plmarcusoh@cgi02 marcusoh $

Oddly after a quarter of an hour nothing, no email!
So, I telnetted again with the following result straight after not receiving any email.

You have new mail.
marcusoh@cgi02 marcusoh $ crontab -l
MAILTO=marcusoh@marcusoh.free-online.co.uk
0-59/5 * * * * /files/home2/marcusoh/cgi-bin/test.plmarcusoh@cgi02 marcusoh $ crontab cronjob
marcusoh@cgi02 marcusoh $ crontab -l
MAILTO=marcusoh@marcusoh.free-online.co.uk
0-59/5 * * * * /files/home2/marcusoh/cgi-bin/test.plmarcusoh@cgi02 marcusoh $

This was at 5:12p.m.

Still no email, strange!
So I have now ftp’ed and changed the cronjob back to 0-59/10 and also telnetted to change the cronjob – this time I did not write cronjob –r to remove the previous cron, instead I just typed in crontab cronjob, and checked that it was OK, result is below, maybe this was why I didn’t receive even 1 email, as although I typed crontab –r it seems to wipe out any future crontab work.

You have new mail.
marcusoh@cgi03 marcusoh $ crontab cronjob
marcusoh@cgi03 marcusoh $ crontab -l
MAILTO=marcusoh@marcusoh.free-online.co.uk
0-59/10 * * * * /files/home2/marcusoh/cgi-bin/test.plmarcusoh@cgi03 marcusoh $

No email, very strange this!
Is there any significance with this: –

marcusoh@cgi05 and this marcusoh@cgi03 being different?

Re-did everything at 17:35pm

marcusoh@cgi05 marcusoh $ crontab cronjob
marcusoh@cgi05 marcusoh $ crontab -l
MAILTO=marcusoh@marcusoh.free-online.co.uk
0-59/10 * * * * /files/home2/marcusoh/cgi-bin/test.plmarcusoh@cgi05 marcusoh $

No email at 18:53p.m.

Reloaded everything again at 18:55

marcusoh@cgi05 marcusoh $ crontab cronjob
marcusoh@cgi05 marcusoh $ crontab -l
MAILTO=marcusoh@marcusoh.free-online.co.uk
0-59/10 * * * * /files/home2/marcusoh/cgi-bin/test.plmarcusoh@cgi05 marcusoh $

No email at 19:10

Removed cronjob as below

marcusoh@cgi04 marcusoh $ crontab -r
remove crontab for marcusoh? yes
marcusoh@cgi04 marcusoh $ crontab -l
crontab: no crontab for marcusoh
marcusoh@cgi04 marcusoh $

also actual file out of cgi root folder and test.pl out of cgi-bin at 19:12

Left the cgi empty of above until 1135p.m. Just to see what happens to my inbox!
Below is the new entry complete, I re-chmodded each as previously!

You have new mail.
marcusoh@cgi02 marcusoh $ crontab cronjob
marcusoh@cgi02 marcusoh $ crontab -l
MAILTO=marcusoh@marcusoh.free-online.co.uk
0-59/10 * * * * /files/home2/marcusoh/cgi-bin/test.plmarcusoh@cgi02 marcusoh $

The results of the above are that I received “No new messages” as of 00:14am

Is there any significance in the fact that my entries into the cgi-bin or root folder are via different roots e.g. marcusoh@cgi02 or marcusoh@cgi03 etc..

What I was thinking of doing is to close down my cgi-bin access for a while and then re-activate it to see what occurs afterwards – is this a good idea as it will loose any files at present which doesn’t matter as I can always re-upload and activate them.