[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: timed subprocess
From: |
Olaf Till |
Subject: |
Re: timed subprocess |
Date: |
Sat, 2 Jul 2011 21:12:33 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Sat, Jul 02, 2011 at 02:21:36PM +0200, Alexander Poddey wrote:
> Hi all,
>
> I need to spawn a thread which runs in background and calls a function /
> script every x ms.
> Did some searching, but found nothing which matches my needs.
>
> Would one do this based on popen? I have the impression that popen is for
> system commands...
>
>
> Thx
> Alex
Yes, popen is for system commands. You would need to use fork and possibly
waitpid (and maybe pause). I don't know what you need it for, but you can't
e.g. change variables of your parent Octave session in the background this
way.
Olaf
- timed subprocess, Alexander Poddey, 2011/07/02
- Re: timed subprocess,
Olaf Till <=