I wonder if there is some alternative to select.select(in,out,except,timeout) in python that would work just as select from linux, but also on windows. Normal select works also on windows but it has one big shortage - it only works with sockets.
I'm facing problem with abrupting blocking select (with timeout). Sometimes I need to end select call before timeout ends.
Assume the OS is linux. Suppose I opened a file for write and get a file descriptor fdw. Is it possible to get another file descriptor fdr, with read-only access to the file without calling open again?
Hey everyone, this program's been killing me. I have to create a program that takes another program as input and counts the lines. Pretty simple, except that to do this, you have to count semicolons which means you have to negate semicolons that are comment text or within double quotes.
If I have
A kernel with CONFIG_HIGH_RES_TIMERS=y,
A coarse CONFIG_HZ (say, 100)
and a file descriptor from timerfd_create with a sub-jiffy
expiration
Should a call to select() on this timer return before the next jiffy, as say, clock_nanosleep would?
The following script
#!/bin/bash
QUERY='select * from cdr;'
MYROWS=$("sqlite3 -list -nullvalue NULL -separator ',' /var/log/asterisk/master.db '${QUERY}'")
gives me
./bla.sh: row 35: sqlite3 -list -nullvalue NULL -separator ',' /var/log/asterisk/master.db 'select * from cdr;': file or directory not found
If I execute directly
sqlite3 -list -nullvalue NULL -separator ',' /var/log/asterisk/ma
Recently I've found a problem which is quite new for me and I'd appreciate advice. I'm doing serial communication on Linux using termios functions. I actually don't use real serial port, but virtual gadget serial driver /dev/ttyGS0. File descriptor is opened as non-blocking.
My program periodically generates data and sends it to /dev/ttyGS0.
hi,
when forwarding/rewinding a video file in mplayer/smplayer it simply hangs till i spin a bit more or less. following an strace of mplayer when it hangs. this part gets repeated infinetly, so i'm guessing theres an infinite loop somewhere.
i've got both plus w32 codecs from packman.
mplayer 1.0.rc2
smplayer 0.6.8.0
On a (linux) server we have a ascii data log file that is being written to rapidly. We would like to read it and do soft real-time plotting on another machine.
What is the best way to achieve this?
I have tinkered a bit with NFS and sshfs, but they don't seem to support select(). i.e. tail -f only updates at it's internal 1hz rate, rather than "continuously".
I want to upload image, audio and video files from my app.