Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

flush(8) [opendarwin man page]

flush(n)						       Tcl Built-In Commands							  flush(n)

__________________________________________________________________________________________________________________________________________________

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. SEE ALSO
file(n), open(n), socket(n), Tcl_StandardChannels(3) KEYWORDS
blocking, buffer, channel, flush, nonblocking, output Tcl 7.5 flush(n)

Check Out this Related 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)
Man Page

14 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Need help on a script

hii i need some help to work out a script to meet the following conditions: it shuld check the dir(LOG) size in a server named x.x.x.x if its 90% then it shuld do ftp to a server with ip y.y.y.yand need to move those files to a particular dir in that server (i.e., in y.y.y.y).Then it shuld... (2 Replies)
Discussion started by: edwin_francis
2 Replies

2. UNIX for Dummies Questions & Answers

Flushing Memory

Hi All, I have a server which has an application which when stopped, doesn't seem to clear out of memory; so I end up rebooting the server. How can I flush the memory without having to reboot the server. (its running Sun Solaris 5.8) Thanking you all inadvance, Zak (2 Replies)
Discussion started by: Zak
2 Replies

3. HP-UX

lp print flush

Dear frnds, i just migrated to hp_ux11i from digital unix, from my new system some printers not printing next day, what i mean is, in lpstat it shows printer is enabled but printing not happening. for that what i do u know, i just disable the lp and enable it again. then it would print. is there... (0 Replies)
Discussion started by: jestinabel
0 Replies

4. HP-UX

Print queue not getting flushed

Hi All, I am new to HP-UX and new to administration world. I have a problem with two HP Laser Jet M5035MFP printers which are connected to HP-UX host machines. Problem is that whenver we print a job, the job gets printed very fine but the queue is not cleared. This makes the further jobs on the... (2 Replies)
Discussion started by: akashgulati
2 Replies

5. Programming

stdout/stdin + flushing buffers

Hi all I've run into a snag in a program of mine where part of what I entered in at the start of run-time, instead of the current value within printf() is being printed out. After failing with fflush() and setbuf(), I tried the following approach void BufferFlusher() { int in=0;... (9 Replies)
Discussion started by: JamesGoh
9 Replies

6. Programming

Clear Serial Port Buffer Using iclear, iflush

Hello, I am having trouble clearing the serial port buffer using the iclear and iflush commands. The code runs without errors being returned, but when I check the buffer again there is still data. The only way I have so far is to read until there is nothing left in the buffer. Shouldn't one... (1 Reply)
Discussion started by: sammy-e
1 Replies

7. Shell Programming and Scripting

flush the mail queue

Hi Guys, My mail queue is showing a mail. I want to flush the queue. Can you let me know how to flush the mail queue. Regards, Magesh (12 Replies)
Discussion started by: mac4rfree
12 Replies

8. Web Development

Flush Ads - Is this code overriding my ads?

I installed a wordpress theme and came across the following code contained in the functions.php (theme functions) file. I am wanting to make sure this code is not over-riding my adsense publisher id and replacing with theirs in the background. I had this happen on another theme and just wanting... (1 Reply)
Discussion started by: blueray1974
1 Replies

9. 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

10. 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

11. Programming

Why must flush all line-buffered output streams?

Hi, Mentioned in Stevens & Rago "Advanced Programming in the UNIX" I don't understand why must flush all line-buffered output streams when (a)an unbuffered or (b)a line-buffered stream require data from kernel? (2 Replies)
Discussion started by: Edward114
2 Replies

12. Emergency UNIX and Linux Support

DNS flush is not working

I have a Linux machine and it seems DNS cache is not getting clear on it. It is still showing old values, even after changing in DNS server by Network team. I did /etc/init.d/nscd restart But still it is showing old values on this server. On my rest of servers in environment, nslookup is showing... (7 Replies)
Discussion started by: solaris_1977
7 Replies

13. 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

14. Programming

Why does fflush(stdin) fail to work ?

#include <stdio.h> #include <stdlib.h> int main(void) { double number; while (scanf("%lf", &number) != 1) { printf("Error\n"); } printf("%lf\n", number); return 0; } Look at the... (3 Replies)
Discussion started by: chihuyu
3 Replies