Running REBOL as a cron job.
[1/5] from: bga:din:uem at: 7-Aug-2000 14:48
Hello.
I'm trying to run a REBOL script as a cron job. I have set the REBOL_HOME
variable (in /etc/profile) to point to my REBOL directory, but I'm having
problems as the script is supposed to send emails and it always complains
that there is no smtp server set (or something like this). What a I missing?
-Bruno
--
Bruno G. Albuquerque [bga--din--uem--br] BeDevId #15362
Grupo Brasileiro de Usuários de BeOS - Presidente
http://beos.din.uem.br
Steinbach's Guideline for Systems Programming:
Never test for an error condition you don't know how to
handle.
[2/5] from: marj:msi at: 7-Aug-2000 11:17
At 02:48 PM 8/7/00 -0300, you wrote:
>Hello.
> I'm trying to run a REBOL script as a cron job. I have set the
<<quoted lines omitted: 3>>
>that there is no smtp server set (or something like this). What a I
>missing?
You need a line something like:
set-net [ [name--domain--com] ###.###.#.## ###.###.##.### ]
where you replace name by the "name" of who you want your script to say is
mailing - needn't be a real person's email name, domain is your domain
name, and the first series of ### should be replaced by the IP address of
you smtp server (outgoing mail) and the second series, which may not be
needed, by your incoming mail server's IP address.
cheers,
Marj
>-Bruno
>--
<<quoted lines omitted: 4>>
> Never test for an error condition you don't know how to
>handle.
--
Marjorie A. Tiefert
Principal Scientific Writer & Documentation Website Manager
Life Sciences Information Design
Molecular Simiulations Inc (http://www.msi.com/)
[3/5] from: bga::din::uem::br at: 7-Aug-2000 16:05
Em Monday, August 07 2000, 15:17:06, [marj--msi--com] ([marj--msi--com]) disse:
>> I'm trying to run a REBOL script as a cron job. I have set the
>> REBOL_HOME
<<quoted lines omitted: 4>>
>You need a line something like:
>set-net [ [name--domain--com] ###.###.#.## ###.###.##.### ]
Thanks. It worked.
Anyway, wasn't REBOl supposed to read the rebol.r and user.r files from the
REBOL_HOME dir?
-Bruno
--
Bruno G. Albuquerque [bga--din--uem--br] BeDevId #15362
Grupo Brasileiro de Usuários de BeOS - Presidente
http://beos.din.uem.br
Bathquake, n.:
The violent quake that rattles the entire house when the water
faucet is turned on to a certain point.
-- Rich Hall, "Sniglets"
[4/5] from: marj:msi at: 7-Aug-2000 12:21
At 04:05 PM 8/7/00 -0300, you wrote:
>Em Monday, August 07 2000, 15:17:06, [marj--msi--com] ([marj--msi--com]) disse:
> >You need a line something like:
<<quoted lines omitted: 4>>
>the
>REBOL_HOME dir?
Except that, when a Rebol script runs as a cron job, the "user" is probably
root, not you. So it doesn't know to read your user.r file.
cheers,
Marj
--
Marjorie A. Tiefert
Principal Scientific Writer & Documentation Website Manager
Life Sciences Information Design
Molecular Simiulations Inc (http://www.msi.com/)
[5/5] from: bga:din:uem at: 7-Aug-2000 16:29
Em Monday, August 07 2000, 16:21:51, [marj--msi--com] ([marj--msi--com]) disse:
>>Anyway, wasn't REBOl supposed to read the rebol.r and user.r files from
>>the REBOL_HOME dir?
>
>Except that, when a Rebol script runs as a cron job, the "user" is probably
>root, not you. So it doesn't know to read your user.r file.
Nah... I am root. :) I think the problem is that when the job is being
executed, it doesn't get the REBOL_HOME variable that is set in /etc/profile.
It would be cool if REBOL would look for these files in a deafult dir (like
$HOME/.rebol)
-Bruno
--
Bruno G. Albuquerque [bga--din--uem--br] BeDevId #15362
Grupo Brasileiro de Usuários de BeOS - Presidente
http://beos.din.uem.br
Finagle's Creed:
Science is true. Don't be misled by facts.
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted