Bless your heart, Heather. Thanks so much for your help. I'm still nervous,
but I'll let you know how it goes.

All the best,
Mike

Michael M Milligan
Web Developer
(818) 909-9209
www.mmmilligan.com <http://www.mmmilligan.com>



-----Original Message-----
From: Heather Laidlaw [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 1:41 PM
To: 'Michael Milligan'
Subject: RE: [wdvltalk] RE: anybody worked with crontab?


Mike -

It depends on the server, but for example, I have a script that has to call
several different programs etc..

<snip>

LOGNAME=boxoff
SHELL=/bin/sh
PATH=/bin:/usr/bin:/u/progs:/u/usr/boxoff
HOME=u/usr/boxoff
TERM=vt100
export SHELL PATH HOME TERM

#This is a shell script that runs the daily reports required
#for the Box Office Receipts to be settled before going to
#the finance department

</snip>

This is the stuff that tells it who I am and where to look for various
programs.  It's going to be different for each server, but your server guy
is right that you'll have to define where the programs live so the script
knows to use it.  You are getting dangerously close to the extent of my help
as I've never needed to run PHP stuff from our cron, so I'm pretty
specialized in knowing how to pull things from our unix based ticketing
system and that's about it.

To make the script you basically need to make sure that every key stroke or
call that you'd do at a shell prompt is included within your script.  Make
sure you've chmoded your file so it is executable by the proper people and
then you'll need to add it to the crontab.  Here are the options for messing
with crontab:

crontab -e
Edits the current crontab or creates a new one. *

crontab -l
Lists the contents of the crontab file.

crontab -r
Removes the crontab file.

Your server guy is going to be the most help because he knows how your
system is set up.. However, I'll stick my oar in where I can if you need
help!


Heather Laidlaw
Internet Manager
Seattle Repertory Theatre
[EMAIL PROTECTED]
(206) 443-2210 x1044
www.seattlerep.org



-----Original Message-----
From: Michael Milligan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 2:26 PM
To: Heather Laidlaw
Subject: RE: [wdvltalk] RE: anybody worked with crontab?


In fact, HEather, I just got an email back from the server guy.

HE WROTE:
You can use php scripts for crontabs aslo but you have to call the php
command line program first like "cd /dir/to/my/program; /usr/bin/php
myprogram.php". The crontab service is already running all you have to do is
upload the crontab lines you would like and execute the command as it says
in the howto in an ssh window.

He says I can do it (and I know I can ultimately figure it out) but I'm  not
sure what he's talking about.

Hate to show my ignorance, but when that's all one has...
Mike

Michael M Milligan
Web Developer
(818) 909-9209
www.mmmilligan.com



-----Original Message-----
From: Heather Laidlaw [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 1:02 PM
To: '[EMAIL PROTECTED]'
Subject: FW: [wdvltalk] RE: anybody worked with crontab?


Mike -

If you can set up a shell script to run a php program you can run it through
crontab.  If you don't have control of the box you'll need to talk to
whomever hosts it about adding things to their crontab.  You should be able
to run scripts from any users directory, but some hosts might get a little
twitchy about doing that.

Heather Laidlaw
Internet Manager
Seattle Repertory Theatre
[EMAIL PROTECTED]
(206) 443-2210 x1044
www.seattlerep.org



-----Original Message-----
From: Michael Milligan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 1:50 PM
To: [EMAIL PROTECTED]
Subject: [wdvltalk] RE: anybody worked with crontab?


Thanks, Heather. That sounds like the ticket! If I get tired of crontab
doing what it's doing, I can just send it to a script that does nothing. I
work in PHP. Can it call PHP scripts?

Also, is the crontab scripting itself something I can upload myself onto a
third party server? Or is it something the server people themselves have to
add? I found a couple of good articles on crontab.

Thanks again,
Mike

Michael M Milligan
Web Developer
(818) 909-9209
www.mmmilligan.com <http://www.mmmilligan.com>



-----Original Message-----
From: Heather Laidlaw [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 12:16 PM
To: [EMAIL PROTECTED]
Subject: [wdvltalk] RE: anybody worked with crontab?


I work with it in a limited fashion, but I have access to people who use it
at a more advanced stage.

Usually, it's best with a crontab to set up a script and then just have the
crontab call the script. That way you can make changes on the fly to the
script and the crontab just merrily keeps running it... What exactly do you
need help with?

Heather Laidlaw
Internet Manager
Seattle Repertory Theatre
[EMAIL PROTECTED]
(206) 443-2210 x1044
www.seattlerep.org



-----Original Message-----
From: Michael Milligan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 1:19 PM
To: [EMAIL PROTECTED]
Subject: [wdvltalk] anybody worked with crontab?


I've got a client who wants to receive dbase in update emails daily, and I
don't want to have to do it manually. I heard that crontab will do
that...anybody had any experience with crontab?

TIA,
Mike

Michael M Milligan
Web Developer
(818) 909-9209
www.mmmilligan.com



____ * The WDVL Discussion List from WDVL.COM * ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
       Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To
unsubscribe send a blank email to %%email.unsub%%

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.495 / Virus Database: 294 - Release Date: 6/30/03


____ * The WDVL Discussion List from WDVL.COM * ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
       Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To
unsubscribe send a blank email to %%email.unsub%%



____ * The WDVL Discussion List from WDVL.COM * ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
       Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To
unsubscribe send a blank email to %%email.unsub%%

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.495 / Virus Database: 294 - Release Date: 6/30/03


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.493 / Virus Database: 292 - Release Date: 6/25/2003




____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
       Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to