Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hcicomand output to a tcl array

Status
Not open for further replies.

snowingnow

Programmer
Jun 1, 2006
32
0
0
CA
I would like to caputred result of hci command and save them in an array, let say,
in tcl
I have run, exec hciconnstatus -c 'myconnection',
i like to create an array or list to hold the outputs, how can i do that, thanks
 
I'm not familiar with hciconnstatus. If you run, say:
set rtnval [exec hciconnstatus -c 'myconnection'], what value is in rtnval?

Assuming it's nothing useful, you will probably need to redirect the output of hciconnstatus to a file and then read that file in your script.

_________________
Bob Rashkin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top