The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
let curl output to stdout AND save to a file scarfake Shell Programming and Scripting 3 05-31-2008 01:16 PM
terminal output - save to file? frustrated1 SUN Solaris 2 11-15-2005 06:19 AM
save swainaina Shell Programming and Scripting 2 03-01-2005 04:07 PM
save me! hufs375 Shell Programming and Scripting 2 05-27-2002 06:03 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 08-22-2005
Registered User
 

Join Date: Aug 2005
Posts: 2
Save TCL Procedure Output

Hello Friend,
In TCL i wrote a procedure as power, accepting two arguments and it was saved as a file named TCLProc.tcl.
Now from unix, using shell script i want to run this procedure power,the output of this procedure should be saved in a text file.How can i do this.Please help me as early as possible.It is very urgent for me.

If possible please provide sample code.

Thankyou.

Last edited by gjsaravanan; 08-23-2005 at 10:50 PM.
Reply With Quote
Forum Sponsor
  #2  
Old 11-21-2007
Registered User
 

Join Date: Aug 2005
Location: India
Posts: 17
Save TCL Procedure Output

Hi

vim sample.tcl

/usr/bin/tclsh

proc power { a b } {
puts "$a --- $b"
}

close the program
from the command prompt

$path/wish sample.tcl 5 6 >> output.txt

hope u got it

Regards,
Sanju.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:48 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0