Re: run 4ge with crontab; dumps core
Posted in 1994
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
In article <tiggyrCo60Dw.9vE@netcom.com>, tiggyr@netcom.com (robert read) writes: |> We have a script that runs our batch jobs, and this script is run by |> crontab at night. Many of our programs do screen i/o (including "open |> window"). When these programs have been compiled with 4gl 4.1 |> (RS6000), they dump core instantly. We have set TERM and TERMCAP in |> the script. |> |> Could this be caused by the fact that a process run by crontab does |> not have a terminal associated with it? |> |> |> -- |> ------------------------------------------------------------ |> robert m. read |> tiggyr@netcom.com |> For PGP Public Key, finger tiggyr@netcom.com When you run a job using crontab it is run without the informix environment variables setup. It also as you say, does not have a terminal associated with it. In you script to run the job you can include a line to run another script that sets up the informix environment variables as in the following example: # Set the informix environment variables (I just made up this filename) . /usr/environ/informix # execute the 4ge sending all the output to /dev/null # Alternatively you could send the standard errors to a log file. program.4ge 1>/dev/null 2>/dev/null If your program requires input you could send this into the program using command line parameters from the cron script. Alternatively you could write them to an informix table that the program could read. -- Mark J. Twomey, | Motorola B.V. | m___ Swords, | @=" )~~ Pig Out ! County Dublin, | W W Ireland, | Europe. email at mjt@email.mot.com +----------------------------------