I need to run a program that outputs to a file:
exec c:/windows/system32/powercfg.exe -l >$pwrfile
This works fine. However, I would like to send the output to a tcl variable instead of a file. Is this possible? If so, how?
Red Flag Submitted
Thank you for helping keep Tek-Tips Forums free from inappropriate posts. The Tek-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Tek-Tips forums is a member-only feature.