Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1104345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:28:13+00:00 2026-05-17T01:28:13+00:00

When calling script as tclsh ./TestDriver.tcl TestList the tcl script stops after one (?)

  • 0

When calling script as

tclsh ./TestDriver.tcl TestList

the tcl script stops after one (?) line. But when called with output redirected to a file

tclsh ./TestDriver.tcl TestList >bar.out

it runs smoothly.
Any ideas what might be the cause of such behavior ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T01:28:13+00:00Added an answer on May 17, 2026 at 1:28 am

    Almost all Tcl scripts work identically when their output is directed to a terminal or to a file. While there is a tcl_interactive variable that things could be keyed off, it doesn’t come into play when you’re supplying the script as an argument. The other base-line difference is that stdout will have different buffering by default; you can change that to be defined with:

    fconfigure stdout -buffering none ;# Or “line” or “full”
    

    However, I would expect the differences there to make things (very marginally) less likely to work in the case of being redirected to a file. Whatever is going on (and I bet it either involves running subprocesses or the use of extension packages) I can’t guess it on the basis of the evidence provided.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am calling a command-line program from my Perl script. When these programs crash,
I have one windows batch script where I am calling two other batch script.
I have a script code in vb.net environment which is calling file from path
I have a build script calling xcodebuild. that works, but I want to also
I'have a bash script calling a jar file like this: awk -f fileformat.awk list.txt
I'm calling bash script B from script A. In script A (parent script) I
I am writing a bash script that uses calling syntax script [options] [dir] To
I am trying to make a Master perl script calling children perl script and
I have a cronjob calling a shell script. Inside that shell script and I
ExecWait msiexec /i myinstaller.msi /qn $0 That's all I'm calling in my script. (The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.