Operating System - HP-UX
1755116 Members
3657 Online
108830 Solutions
New Discussion юеВ

Re: running scripts in crontab

 
harry d brown jr
Honored Contributor

Re: running scripts in crontab

Can you do a "whereis ret" to determine if there is another program called "ret" in your path. What does "ret" do?
Live Free or Die
user_2001
New Member

Re: running scripts in crontab

ret -- is a program that calls up a terminal -- like calling SAM up and then sends a message from within sam!!
...
Sachin Patel
Honored Contributor

Re: running scripts in crontab

Hi Colet,
Is ret a gui program?

Sachin
Is photography a hobby or another way to spend $
Mark van Hassel
Respected Contributor

Re: running scripts in crontab

You probably have to set the DISPLAY variable in your script.
The surest sign that life exists elsewhere in the universe is that none of it has tried to contact us
harry d brown jr
Honored Contributor

Re: running scripts in crontab

Sachin is probably right about the "DISPLAY" variable, but if not, try this:

From a root login capture your environment variables:

env > /tmp/root_env

From your crontab script, add a line like this:

env >/tmp/cron_env

Then do a "diff" and add any missing variables.
Live Free or Die
user_2001
New Member

Re: running scripts in crontab

No ret is not a gui program more like a command line menu options!!
...
Sachin Patel
Honored Contributor

Re: running scripts in crontab

Hi
use FQPN for your program rat. i.e if your executable rat is in /opt/rat/bin then in script use

/opt/rat/bin/rat -c ?????? > /dev/null


Sachin
Is photography a hobby or another way to spend $
Wodisch
Honored Contributor

Re: running scripts in crontab

Hello Colet,

if I read your script right, you are using the C-shell
from within it. Well, then it will perhaps try to be
"interactive" and that would need a "controlling
terminal" which will not be available if called from
"cron"... There is an option for the C-shell to NOT
start interactively, though, you might try that...

HTH,
Wodisch