public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
* Synth target spawning external processes
@ 2011-10-17 20:29 Simon Kallweit
  2011-10-17 21:29 ` Sergei Gavrikov
  0 siblings, 1 reply; 2+ messages in thread
From: Simon Kallweit @ 2011-10-17 20:29 UTC (permalink / raw)
  To: eCos Developer List

Hello

I was wondering if anyone has written some Tcl/Tk code to spawn external 
processes when running the synth target. We currently have a few 
external processes to simulate a GPS receiver among other things. These 
processes are currently started independent of ecossynth and need to be 
up and running when starting the application. This works, but it'd be 
nicer to automatically spawn these processes when the application is 
started, especially when doing so from the debugger. I think I'll wrap 
something up unless there is already a solution out there which I can 
build upon.

Best regards,
Simon

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Synth target spawning external processes
  2011-10-17 20:29 Synth target spawning external processes Simon Kallweit
@ 2011-10-17 21:29 ` Sergei Gavrikov
  0 siblings, 0 replies; 2+ messages in thread
From: Sergei Gavrikov @ 2011-10-17 21:29 UTC (permalink / raw)
  To: Simon Kallweit; +Cc: eCos Developer List

On Mon, 17 Oct 2011, Simon Kallweit wrote:

> Hello
> 
> I was wondering if anyone has written some Tcl/Tk code to spawn
> external processes when running the synth target. We currently have a
> few external processes to simulate a GPS receiver among other things.
> These processes are currently started independent of ecossynth and
> need to be up and running when starting the application. This works,
> but it'd be nicer to automatically spawn these processes when the
> application is started, especially when doing so from the debugger. I
> think I'll wrap something up unless there is already a solution out
> there which I can build upon.

Hi Simon,

If I understood you correctly that one (lazy) way is to use ecos target
definition files (.tdf files).  You can put Tcl code there (= what you
need).

My brief test was

  % cat >test.tdf<<EOF
exec notify-send Hello &
exec gksudo &
puts hello
EOF

  % watchdog2 -io -t test.tdf

and it worked as I could expect. I saw/got all things.

Well, it looks like a hack. But, as I said that is one and lazy way to
get the needed things in Tcl/Tk (=quickly).

Also, IMO, the same things can be done through .gdbinit.

HTH
Sergei

> 
> Best regards,
> Simon
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-17 21:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-17 20:29 Synth target spawning external processes Simon Kallweit
2011-10-17 21:29 ` Sergei Gavrikov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).