Re: foxpro 2 for Unix and cron jobs.

From: swdev2 (wsanders.bob_at_bob.efgroup.com)
Date: 04/08/04


Date: Wed, 7 Apr 2004 20:04:35 -0500

Heya Nelson
coupla things:
1. running the cron as which user ?
2. for 'that' user - does 'foxpro' invoked at first login prompt work ? if
no - see below
3. once logged in as 'that ' user - does 'foxpro 1dnc###.prg' work ? if
no - see below
---------and now for ----- below
2.a. you have a pathing problem - fix it.
3.a give the cron job the exact pathing to the location of the 1dnc###.prg
file

----
are you setting the job to email you back on success/failure ?
you may want to set up the cron job, instead of just ONE line - as a
script file - then inside the script file set up your environment variables,
and put in the
relative path of the prg file.
ALSO ? there should be a run time module of sorts - can't remember the exact
name, but it wasn't 'foxpro' .  But I remember you can invoke a prg with
some other command line switches.
---
hth  - its been a few years since I touched a FPU box ..
mondo regards [Bill]
--
William Sanders / Electronic Filing Group  Remove the DOT BOB to reply via
email.
Mondo Cool TeleCom -> http://www.efgroup.net/efgcog.html
Mondo Cool WebHosting -> http://www.efgroup.net/efglunar.html
Mondo Cool Satellites -> http://www.efgroup.net/sat
mySql / VFP / MS-SQL
"Nelson Arroyo" <n_arroyo@bellsouth.net> wrote in message
news:MJIcc.3280$ZT1.1403@bignews6.bellsouth.net...
> Hello all
> In Unix I can type foxpro 1dnc###.prg, which will open foxpro and run the
> program. I am looking to run this via a cron job. Its been explained to me
> by the vendor that the cron job bombs out because foxpro needs to open the
> foxpro window to run and it doesnt know where to open it.
>
> Is there a command in foxpro to suppress the window from opening it?
>
> Thanks for all the assistance.
>
>


Relevant Pages

  • RE: To use "at" vs. "crontab", that is the question
    ... line to the script that calls the foxbase program from cron or at... ... >> being used and I'm not knowledgeable enough with SCO. ... > If they laugh, I'll get the garden hose, foxpro is one fine ... > never forget one of my first foxpro cron jobs, I redirected stderr and ...
    (comp.unix.sco.misc)
  • Re: PHP and cron jobs
    ... except for when I need to update the awards via cron ... cron runs as the effective user id of the name of the crontab file. ... run the cron job as user 65534. ...
    (comp.lang.php)
  • Re: a cron problem
    ... I have trouble with a cron job, ... for db in `cat liste` ... tar -cf $tar * ...
    (comp.unix.shell)
  • Re: Cron jobs not working..
    ... Chris Thompson wrote: ... >>Can any one tell what could be the possible reasons for the cron job ... Thank you very much for the tips..it is infact the case of cron queue ... " root ran out of cron job queue, something was taking up all the queue ...
    (comp.unix.solaris)
  • Re: Using Cron to run a python program
    ... looked in the home path of the cron environment and found the ... update.log file that the cron job was writing to. ... >> You're not giving us much detail about your script, ...
    (comp.lang.python)