Re: Cron question

From: Boris Savc (boris.savc_at_odis-info.com)
Date: 09/14/04


Date: Tue, 14 Sep 2004 08:33:20 +0200


"J.O. Aho" <user@example.net> wrote in message
news:2qlo0nFq0at6U1@uni-berlin.de...
> Boris Šavc wrote:
> > I have a procedure that works fine from command line, but doesn't in
cron or
> > with at command. The procedure calls third party software as well, so I
> > guess the problem is in that (probably with something third party
software
> > would like to write to screen). But is there a way to execute procedure
from
> > cron with regardless from screen? Is there a workaround?
>
> The "3rd party" software can't be GUI based, has to be a command line
program.
> The best thing I think you can do is to make a script that works, eg:
>
> ---bof---
> #!/bin/sh
> ls /root | grep txt
> ---eof---
>
> and then execute that script from the crontab (or place it inside one of
the
> cron.* directories.
>
>
> //Aho

It's not GUI based, but i know now that is looking for /dev/tty (i use
strace to find that out). Is there a way to go around that and how? The
program needs no interaction from user. Maybe expect could help??

Regards,
Boris Savc



Relevant Pages

  • Re: Nmon scheduling question
    ... command ran first then in the script is the ps and kill command so it ... Vince this is a great script. ... Cron Job with pid: 135238 Failed ...
    (AIX-L)
  • SUMMARY: cron entry: nth day of every month?
    ... cron can not handle this with its own syntax. ... 21st but "command" only runs if the output of the "date" command ... What I would suggest is rather than embedding the logic in each script ... The answer is it is _not_ possible to control it only with crontab ...
    (Tru64-UNIX-Managers)
  • Script wont run from cron
    ... the command line, but the same script fails when running from cron. ... The /bin/sh script runs, but when it goes to fire up the indexing process, ... set, id and limits. ...
    (freebsd-questions)
  • Re: Cron Job
    ... If you mean the computer itself, put that command ... The standard 'cron' runs jobs at a specific time/date. ... Init or @reboot run jobs when ... Sunday night at 02:00) then copy the script and cron entry. ...
    (comp.os.linux.misc)
  • Cron entry & .profile question
    ... Cron jobs can be confusing at times. ... When I run a script I wrote from ... The bourne shell uses the command "." ... Should I run my cron job as root or should I make a new cron entry ...
    (SunManagers)