Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: problem with xvesa.lua, inconsistent read of file /tmp/pipe.lua< Next Oldest | Next Newest >
minimalistic Offline





Group: Members
Posts: 4
Joined: Sep. 2006
Posted: Sep. 30 2006,13:42 QUOTE

Hello,

xvesa.lua is used to set resolution.  From my limited undestanding, it looks like it pipes the output of Xvesa -listmodes to /tmp/pipe.lua, then reads from that file to create buttons to set resolution.  My problem is that almost always on the first use or two, tool comes up blank.  The file /tmp/pipe.lua always gets created, so I can only assume that the script doesn't read it consistently.  Anybody else have this problem?  If so, how do you fix it?
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Sep. 30 2006,14:35 QUOTE

This seems to be a potential problem:
Code Sample
execute("Xvesa -listmodes 2>/tmp/pipe.lua &")
local file,err = openfile("/tmp/pipe.lua","r")

Xvesa -listmodes is run in the background, and immediately lua tries to open the file.  If that file has not yet been created, it will fail.  Removing the ampersand should fix it.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
1 replies since Sep. 30 2006,13:42 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: problem with xvesa.lua

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code