Re: A (trick) example of search in Euforum and CRON
- Posted by Robert Craig <rds at RapidEuphoria.com> Jul 24, 2005
- 480 views
Rubens wrote: > As I didn't find my answer to the question may be > someone could help me with this: > Anyone using cron and debian to run euphoria scripts ? > The script runs well in the shell ( /home/ > ./euscript.exu ), but in cron, nothing happens. > Euphoria Linux instalation is ok, the first line > of the script is #!/usr/euphoria/bin/exu. > > Then line in crontab is */1 * * * * /home/euscript.exu > > euscript.exu is in /home/ > euphoria is in /usr/euphoria/ > EUDIR is ok. > > I'm running it as root. > Permission are 777 for euscript.exu, I run some Euphoria programs with cron. Whenever I set up a new one, it seems there's a glitch at first. The cause might be: - cron is running as a different user, and that user has a different PATH, or does not have EUDIR defined - permissions are wrong on the main program, or included files, or directories containing those files, or data files In my crontab file, I specify SHELL and PATH, as well as the timing of cron. I specify a specific time each hour like: 05 * * * * $HOME/euforum/filter.exu I haven't used */1 It's probably just some sticky little Linux issue like that. There is no reason why a Euphoria program can't run under cron. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com