PDA

View Full Version : Runprogram on Red Hat Linux



Wayne Gardner
1-Apr-2005, 05:50 AM
I am having a problem with runprogram on a Red Hat Linux system using
Dataflex 3.2.

I have written a cron like dataflex program using the timer package and the
runprogram command.

When I use "runprogram wait" to spawn an asynchronous task the display is
cleared even though I have redirected all output from the spawned task. Also
after the tasks are spawned the program requires keyboard input to wait for
the next event because all the timers have stopped.

When I use "runprogram pipe" to spawn an asynchronous task everything seems
to works perfectly except that the tasks are NOT asynchronous because the
task spawned becomes a zombie which waits on the asynchronous task it
spawns.

Is there a way I can have asynchronous tasks without the display problems
and keyboard input?

__________________
Cheers,
Wayne Gardner

merkan
1-Apr-2005, 08:11 AM
test
"Wayne Gardner" <waynegardner@optushome.com.au>, haber iletisinde şunları
yazdı:00cH0dqNFHA.5976@dacmail.dataaccess.com...
>I am having a problem with runprogram on a Red Hat Linux system using
> Dataflex 3.2.
>
> I have written a cron like dataflex program using the timer package and
> the
> runprogram command.
>
> When I use "runprogram wait" to spawn an asynchronous task the display is
> cleared even though I have redirected all output from the spawned task.
> Also
> after the tasks are spawned the program requires keyboard input to wait
> for
> the next event because all the timers have stopped.
>
> When I use "runprogram pipe" to spawn an asynchronous task everything
> seems
> to works perfectly except that the tasks are NOT asynchronous because the
> task spawned becomes a zombie which waits on the asynchronous task it
> spawns.
>
> Is there a way I can have asynchronous tasks without the display problems
> and keyboard input?
>
> __________________
> Cheers,
> Wayne Gardner
>
>

Joerg Thuemmler
4-Apr-2005, 12:43 AM
Wayne,

I use the original cron for such tasks. In my application directory
I've a batch script setting the path and environment and starting
the program:

#!/bin/bash

# V1 .0 14.06.2002

cd /home/<applicationdirectory>

.. ./.setpath

$1

exit 0


in the crontab (root's) are calls like (in one line!):

10 4 * * 3,5 dflex-user /home/applicationdir/..batch.sh
"dfrun <dflexprogram> <arguments>"

works best on df3.1d, can't imagine it won't do on 3.2

cu

joerg


Wayne Gardner wrote:
> I am having a problem with runprogram on a Red Hat Linux system using
> Dataflex 3.2.
>
> I have written a cron like dataflex program using the timer package and the
> runprogram command.
>
> When I use "runprogram wait" to spawn an asynchronous task the display is
> cleared even though I have redirected all output from the spawned task. Also
> after the tasks are spawned the program requires keyboard input to wait for
> the next event because all the timers have stopped.
>
> When I use "runprogram pipe" to spawn an asynchronous task everything seems
> to works perfectly except that the tasks are NOT asynchronous because the
> task spawned becomes a zombie which waits on the asynchronous task it
> spawns.
>
> Is there a way I can have asynchronous tasks without the display problems
> and keyboard input?
>
> __________________
> Cheers,
> Wayne Gardner
>
>