Sponsored Content
Top Forums Programming Sleep or Dealy fucntion Issue Post 302125249 by porter on Wednesday 4th of July 2007 08:49:38 PM
Old 07-04-2007
1. try

Code:
sleep(1);
printf("Hi");
fflush(stdout);
sleep(1);
printf("How");
fflush(stdout);
sleep(1); 
printf("are"); 
fflush(stdout);
sleep(1); 
printf("you?"); 
fflush(stdout);

the problem you describe is caused by stdio doing buffering.

2. look to curses/ncurses to provide terminal independent fancy output else encode VT100 escape sequences yourself.
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

sleep

what is the purpose of the sleep command? (5 Replies)
Discussion started by: Anna
5 Replies

2. Shell Programming and Scripting

Sleep under one second

If I want a script to sleep for less than a second, would I use a decimal? In other words, if I wanted my script to sleep for 1/4 of a second, would I say, SLEEP .25 ?? (5 Replies)
Discussion started by: Scoogie
5 Replies

3. UNIX for Dummies Questions & Answers

system sleep

Dear All , I installed new Linux Red Hat 9 system and it is working fine . but while i keep it for certain time ideal ( i mean ndo not wrok on system itself ) it goes to mode like sleep mode ,,, but while it is in sleep mode i can not ping it or telnet !! i discovered it while i was telnet... (8 Replies)
Discussion started by: tamemi
8 Replies

4. UNIX for Dummies Questions & Answers

Sleep less than 1 second

Does anyone know a way to sleep less than 1 second? Sometimes when I write scripts that iterates a loop many times it would be nice to slow things down, but sometimes 1 second is too much. (9 Replies)
Discussion started by: bjorno
9 Replies

5. Shell Programming and Scripting

Wrapping 'sleep' with my 'resleep' function (Resettable sleep)

This is a very crude attempt in Bash at something that I needed but didn't seem to find in the 'sleep' command. However, I would like to be able to do it without the need for the temp file. Please go easy on me if this is already possible in some other way: How many times have you used the... (5 Replies)
Discussion started by: deckard
5 Replies

6. UNIX for Dummies Questions & Answers

ISSUE on SFTP fucntion ,parameter passing!

Hi Everyone!! Hey i created a SFTP function to FTP the file from unix to Linux. I need to FTP the 48 files from unix to linux. IP=$1 Userid=$2 Prikeypath=$3 SrcPath=$4 DstPath=$5 Files=$6 BATCHFILE=sftp.batch.$$ LOGFILE=sftp.log.$$ #Compose batch file & pass as argument to the... (1 Reply)
Discussion started by: bobprabhu
1 Replies

7. Shell Programming and Scripting

Sleep while i > 0

Hi, I have a script that runs a process at the beginning and I want to sleep/wait until this process is finished and then continue with the rest of the script. I am trying with this, but it is not working: process=`ps -ef | grep "proc_p01 -c" | grep -v grep | wc -l` if ; do sleep 10 done... (7 Replies)
Discussion started by: apenkov
7 Replies
RDF::Closure::Engine::RDFS(3pm) 			User Contributed Perl Documentation			   RDF::Closure::Engine::RDFS(3pm)

NAME
RDF::Closure::Engine::RDFS - RDF Schema inference ANALOGOUS PYTHON
RDFClosure/RDFSClosure.py DESCRIPTION
Performs RDFS inference, but not RDFS D-entailment (datatype stuff). SEE ALSO
RDF::Closure::Engine. <http://www.perlrdf.org/>. http://www.w3.org/TR/2004/REC-rdf-schema-20040210/ <http://www.w3.org/TR/2004/REC-rdf-schema-20040210/>. AUTHOR
Toby Inkster <tobyink@cpan.org>. COPYRIGHT
Copyright 2008-2011 Ivan Herman Copyright 2011-2012 Toby Inkster This library is free software; you can redistribute it and/or modify it under any of the following licences: o The Artistic License 1.0 <http://www.perlfoundation.org/artistic_license_1_0>. o The GNU General Public License Version 1 http://www.gnu.org/licenses/old-licenses/gpl-1.0.txt <http://www.gnu.org/licenses/old- licenses/gpl-1.0.txt>, or (at your option) any later version. o The W3C Software Notice and License http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 <http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231>. o The Clarified Artistic License <http://www.ncftp.com/ncftp/doc/LICENSE.txt>. DISCLAIMER OF WARRANTIES
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. perl v5.14.2 2012-06-28 RDF::Closure::Engine::RDFS(3pm)
All times are GMT -4. The time now is 12:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy