![]() |
flushing I/O?
Hi all. :D
I have a little bash script that simply outputs "foo" into a file under the /tmp dir :
!#/bin/bashA little thing about this code is that I'm executing it thought "C"'s "execl" command. It works fine the first time...but then hangs the second....if I kill the process and leave it for a while, it will work again...once...and then hang until I kill. I think that there is a combat for resources here and that either the bash script or the C script is tieing up the I/O Stream....I have reason to believe it's the bash...although I've been wrong many...many times before. ^_^ Long story short, is there any way to "flush" out the I/O stream in bash? Thanks in advance! ^_^ |
Never mind...found it after. The command is sync.
Works now for SOME users....there still seems to be an I/O deadlock happening for some. I'll have to go though the rest of my code and make sure everything is fully flushed. Thanks! :D |
| All times are GMT -5. The time now is 12:22 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC