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 8852491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:24:52+00:00 2026-06-14T13:24:52+00:00

I am parsing through some tcl scripts left for me by a long-gone ex-coworker

  • 0

I am parsing through some tcl scripts left for me by a long-gone ex-coworker and trying to make some sense of them without having to actually learn tcl (maybe some other time). I have some scripting experience but not with tcl, so I think I’m getting most of it but I wonder if anyone can tell me what the ‘-i’ flag does, e.g.:

expect {
    -i $tbs -re "(.*)\n" {

or

send -i $ftp "put /dev/acq/$data $data\r"

This is generally found in an expect{} block, but I don’t know if that’s relevant.

Thanks for the help,

Mario

  • 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-06-14T13:24:54+00:00Added an answer on June 14, 2026 at 1:24 pm

    This is specific to expect, not tcl in genreal (so it’s the expect manpage you should be referring to).

    For both the expect and send commands the -i flag is similar: it specifies a particular spawn_id (subprocess) to work with, rather than the default.

    expect
    
    [...]
    
    By default, patterns are matched against output from the  current
    process,  however  the -i flag declares the output from the named
    spawn_id list be matched against any following  patterns  (up  to
    the  next  -i).
    

    and

    send
    
    [...]
    
    The -i flag declares  that  the  string  be  sent  to  the  named
    spawn_id. 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to validate some data in a CSV file I'm parsing through. The
I am having some issues passing commands through to flash from javascript. My code
I am having trouble with passing some variables through a method and then having
I'm trying to fumble my way through parsing rss sensibly, using jQuery and jFeed
I am working on Parsing right now, So can anybody please through some light
I'm writing an 8086 assembler for a college project . I've gone through some
I'm parsing some xml, and given a particular node, I'm trying to figure out
I've got a xml that I'm parsing and trying to extract some data from.
I'm trying to use Antlr for some text IDE-like functions -- specifically parsing a
I am having a strange issue parsing some POP3 messages in JavaMail 1.4.4 -

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.