On Wed, Apr 24, 2002 at 03:31:34AM +0100, Tim mentioned:
> > Can anyone advise me: How to call a 'C' program from Tcl ?.
> > Alternatively, how can I add an extra port to the OS. I want to
> > set/clear the watchdog on my sbc's. This resides at 0x443. I have a
> > bit of 'C' code which does this, or if it works as a port, I can write
> > to it directly.
Ah, don't bother with C. You can use 'dd'. Something like
dd if=/dev/zero of=/dev/port skip=1091 count=1 bs=1
should write 0 to port 1091 (0x443). Exec dd from TCL with exec..
John Looney Chief Scientist
a n t e f a c t o t: +353 1 8586004
www.antefacto.com f: +353 1 8586014
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!