search for: fconfigure

Displaying 2 results from an estimated 2 matches for "fconfigure".

Did you mean: configure
2018 Jul 04
1
FE700VA over USB? controlling UPSes over network?
...nano-ITX-type one that has USB but not old serial ports.  I connected my FE700VA to DB25-to-9-to-USB cables, but haven't been able to set it up. Apparently my DB9-to-USB cable (Prolific Technology, Inc. PL2303 Serial Port) has issues needing old software (setserial?) and some new software (fconfigure) being changed.  Has anyone managed to do something like this?     I'm still also interested in knowing how to control the three UPSes I have in the house (except FE700VA not re-setup yet) over the network, from one of them.  I managed to load some webpages to monitor them but can you shut...
2018 Jul 01
2
[PATCH nbdkit] Add Tcl plugin, for writing plugins in Tcl.
...client connection. +proc plugin_open {readonly} { + global file + + # Open the file. + if { $readonly } { + set flags "r" + } else { + set flags "r+" + } + set fh [open $file $flags] + + # Stop Tcl from trying to convert to and from UTF-8. + fconfigure $fh -translation binary + + # We can return any Tcl object as the handle. In this + # plugin it's convenient to return the file handle. + return $fh +} + +# Close a client connection. +proc plugin_close {fh} { + close $fh +} + +proc get_size {fh} { + global file + + return [f...