Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

flush(3tcl) [debian man page]

flush(3tcl)						       Tcl Built-In Commands						       flush(3tcl)

__________________________________________________________________________________________________________________________________________________

NAME
flush - Flush buffered output for a channel SYNOPSIS
flush channelId _________________________________________________________________ DESCRIPTION
Flushes any output that has been buffered for channelId. ChannelId must be an identifier for an open channel such as a Tcl standard channel (stdout or stderr), the return value from an invocation of open or socket, or the result of a channel creation command provided by a Tcl extension. The channel must have been opened for writing. If the channel is in blocking mode the command does not return until all the buffered output has been flushed to the channel. If the chan- nel is in nonblocking mode, the command may return before all buffered output has been flushed; the remainder will be flushed in the back- ground as fast as the underlying file or device is able to absorb it. EXAMPLE
Prompt for the user to type some information in on the console: puts -nonewline "Please type your name: " flush stdout gets stdin name puts "Hello there, $name!" SEE ALSO
file(3tcl), open(3tcl), socket(3tcl), Tcl_StandardChannels(3tcl) KEYWORDS
blocking, buffer, channel, flush, nonblocking, output Tcl 7.5 flush(3tcl)

Check Out this Related Man Page

flush(1T)						       Tcl Built-In Commands							 flush(1T)

__________________________________________________________________________________________________________________________________________________

NAME
flush - Flush buffered output for a channel SYNOPSIS
flush channelId _________________________________________________________________ DESCRIPTION
Flushes any output that has been buffered for channelId. ChannelId must be an identifier for an open channel such as a Tcl standard channel (stdout or stderr), the return value from an invocation | of open or socket, or the result of a channel creation command provided by a Tcl extension. The channel must have been opened for writing. If the channel is in blocking mode the command does not return until all the buffered output has been flushed to the channel. If the chan- nel is in nonblocking mode, the command may return before all buffered output has been flushed; the remainder will be flushed in the back- ground as fast as the underlying file or device is able to absorb it. EXAMPLE
Prompt for the user to type some information in on the console: puts -nonewline "Please type your name: " flush stdout gets stdin name puts "Hello there, $name!" SEE ALSO
file(1T), open(1T), socket(1T), Tcl_StandardChannels(3TCL) KEYWORDS
blocking, buffer, channel, flush, nonblocking, output ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +--------------------+-----------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +--------------------+-----------------+ |Availability | SUNWTcl | +--------------------+-----------------+ |Interface Stability | Uncommitted | +--------------------+-----------------+ NOTES
Source for Tcl is available on http://opensolaris.org. Tcl 7.5 flush(1T)
Man Page

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Truncate what is It?

what does this command do ? as in does this command just make sure everything in the file is executed? or does it flush the file? Actually this is used on a file in a progress database but I believe it is a unix command? (2 Replies)
Discussion started by: rocker40
2 Replies

2. UNIX for Advanced & Expert Users

changing col(1) command stdout as fully buffered?

Hi All, I am talking about unix col(1) command used for some reverse line filtering etc. And I notice that the stdout of this command is line buffered i.e. the stdout will flush the data in its buffer line by line. So the number of writes performed by stdout are more. So now if I make stdout... (0 Replies)
Discussion started by: sunilsbjoshi
0 Replies

3. HP-UX

changing col(1) command stdout as fully buffered?

Hi All, I am talking about unix col(1) command used for some reverse line filtering etc. And I notice that the stdout of this command is line buffered i.e. the stdout will flush the data in its buffer line by line. So the number of writes performed by stdout are more. So now if I make stdout... (0 Replies)
Discussion started by: sunilsbjoshi
0 Replies

4. UNIX Desktop Questions & Answers

What is buffered output?

ie: man cat .... - u The output is not buffered (3 Replies)
Discussion started by: Xcislav
3 Replies

5. Linux

sed couldn't flush stdout no space left on device

I am running Oracle Linux enterprise server 5.0. I just installed JDE 9.0 and after I started Webserver my root directory is 100% full. Can some one help me flush stdout. I am new to linux. Sam (5 Replies)
Discussion started by: s1a2m3
5 Replies

6. Programming

which signal will flush the file buffer in C/C++

which signal will flush the file buffer in C/C++? eg. send a signal to flush all the file buffer to a file/stdout with out invoking fflush(). -INT, -TERM? someone please help me, thanks in advance! waiting online... (8 Replies)
Discussion started by: jackliang
8 Replies

7. Shell Programming and Scripting

Command to flush specific domain in SunOS 5 DNS

Hello to all, May you help saying me how to flush a specific domain in Linux SunOS5 I know the command rndc is to flush DNS cache, but I would like to know: 1- How to do a flush only on specific domain 2- How to see the content of DNS Resolver cache (similar to info given by IPCONFIG... (2 Replies)
Discussion started by: Ophiuchus
2 Replies