LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-02-2004, 11:01 AM   #1
boxser72
LQ Newbie
 
Registered: May 2004
Location: Indonesia
Distribution: redhat
Posts: 6

Rep: Reputation: 0
tcl/tk and c problem??!!


does anybody know how to passing value from c to tcl/tk??
 
Old 07-05-2004, 01:27 PM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Send.c
Code:
#include <stdio.h>
int main(void) {
  printf("I said moo!\n");
  return 0;
}
gcc -Wall send.c -o send

recv.tcl
Code:
#!/usr/bin/tclsh

set handle [open "|./send" r]
puts "Just got [read $handle] from other process"
close $handle
chmod +x ./recv.tcl
./recv.tcl
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem installing xbru and Tcl/tk tlakers Linux - Software 2 10-25-2005 03:24 PM
svxlink: tcl problem Moses420ca Linux - Software 2 09-11-2005 11:47 AM
tcl/tk and c problem??!! boxser72 Programming 1 06-26-2004 10:11 PM
FC-2 tcl/tk problem and cluttering of nautilus. hasan Fedora 5 06-03-2004 10:04 AM
problem upgrading tcl tylerb Linux - Software 1 02-29-2004 04:41 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration