the short file descriptor of an ISO file. I have been assigned with a task to match the short file descriptor of an ISO file(to be provided to the customer) to check if thats "Kudgo Support tools" or not.What linux command should I use?
error message when I ran my program that I couldn't open my local file. I have two files first one is called client, second one is called server I am using named pipes to sent a message from client to the other file called server in client I used mknod() to create the two named pipes,one for read,one for write and created new thread in client using fork() spawned a child process that executed the server file both named pipes are opened the client file got the message from the user and sent it through the named pipes to the server file when the server receives the message , it needs to verfify it is correct in the server file, a local file descriptor is created to read and send this verifing message when it is not correct but I am getting an OPEN() error when I tried to open this shared local array buff and attach it to a file descriptor where the message is kept why do I get this error in server file
int main() { /*both named pipes are open*/ rfd=open(IFIO1,0); wfd=open(IFIO2,1);
i've checked the link, and it makes it better. but it doesn't include all the information. i'll continue searching the internet. However i have seen an example of creating a fd:
Code: exec 5<&1 echo "TEST" >&5 exec 5>&-
as in the page, this was intended to redirect the stdout to the fd 5 and create it, and close it. i have the following questions:- what is exactly the meaning of second command? is it to redirect the command stdout "test" to the fd 5? and how i can see the contents of the fd 5? - in the first command, why the < is used instead if > and what is the difference between the below two commands as in the info bash *Redirection section It will be helpful if anyone could include a graph for file descriptor before and after different command execution.
Where does input to sudo go? I mean when we give password to sudo prompt where it actually goes? If it goes to a file what is its name or what is its file descriptor?
I create two script file name for "a.py" and "b.py", It's through socket connection. a.py's file writeing "os.pub(s.fileno,x)"create the file descriptor,but i don't know how to get the descriptor file with "b.py"
As we know, every process has a table with a file descriptor table, in which each entry contains a file pointer pointing to the corresponding file table which contains a v-node pointer pointing to the v-node table.
When closing a file descriptor, are all these data structure deleted?
We are facing problem of to many file open error because of that application become slow and in tomcat catalina log we get following error frequently Jul 6, 2009 12:27:57 PM org.apache.tomcat.util.net.JIoEndpoint$Acceptor run SEVERE: Socket accept failed
at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384) at java.net.ServerSocket.implAccept(ServerSocket.java:453)
[code].....
no file limit,file descriptor limit for 300 user of tomcat application server and also oracle database server?
I have an FC13 x86_64 server and having trouble building RPMs, but I don't think it's specifically an RPM problem. I think it's a tty management or other type of problem.
When spec files have a "%files -f filelist.txt", which contains the list of files for the RPM, it calls the /usr/lib/check-files script, which sorts the files that are supposed to be in the RPM and compares them with the files that are in the built RPM before they are packaged.
The trouble is that the sort fails.
Here's the trace from the check-files script:
The above doesn't show that the output from sort is redirected into those /tmp files. The first sort succeeds because it reads data sent by the "find" in the same shell. The second sort fails because (I think) it cannot read data from stdin for some reason.
What could possibly cause this? I've checked various permissions, libraries, even used strace extensively, all of which is inconclusive.
This is one of my test server boxes, so this problem is something that I've caused, but I have no idea what.
libc controls input and output, correct? Could it somehow be a glibc problem, or a devpts problem? I can run a simple command and pipe it to sort with no problem. It appears to only be related to sub-shells.
I also replaced sort with cat and just tried to redirect stdin in that file to a temporary file, and that also fails.
I've tried running it with selinux disabled and that has no effect.
I am having problems starting jack everytime I try to start it either says bad file descriptor a bunch times or it wont connect to server as client sometime. Other times It just say sorry cannot start jack.
Is it possible to get a file descriptor from the major and minor number. If so, how can this be done? I am trying to see if a port(eg ttyS2) is opened without using the fdopen or open or fopen functions. is there a way to get the file descriptor of file or port that as already been opened, without using the functions I mentioned above. These functions reopens the port. I am trying to avoid that.
I have a quick question: how can I make the path short on the console? My problem is that if I descend 10 levels in a directory tree, the path becomes so long that it takes more, than one line of the console window. Is there a way to shorten it, and show only the name of the current directory, without the whole path, i.e., instead of
Code: v923z@penguin: first/second/third/fourth/fifth/sixth/seventh/eighth/ninth/tenth> only
I'm running nginx for static files and as a proxy server for a comet IM server on ubuntu Jaunty. On high load I'm hitting a limit of 1024 file descriptors. I've tried increasing this limit but still can't pass 1024. Does "more /proc/sys/fs/file-nr" gives me the global count of used file descriptors? Why do I see a maximum of 1024 open file descriptors in /proc/sys/fs/file-nr if this is the global count for the machine and each user should have at least 1024 allowed file descriptors by default? Is there a way to increase the limit while the server is running?
Some relevant info on my server: sudo more /proc/sys/fs/file-nr 1024038001 sudo sysctl fs.file-max fs.file-max = 38001 sudo nano /etc/security/limits.conf ... * hard nofile 30000 * soft nofile 30000
I also added this to /usr/local/nginx/conf/nginx.conf: worker_rlimit_nofile 10240; Uncommented the following line in /etc/pam.d/su: session required pam_limits.so
Within PyGTK I'm using gobject.spawn_async to launch a bash script. I would like the output of that bash script to be displayed within my application. I have a textview set up to receive the text ...
Here are the two callback functions. But like I say ... I have no idea how to get that data from the 'cstdout' file descriptor into a textbuffer.
Code: ### THE FOLLOWING ARE GLOBALS: textview = wTree.get_widget('textview1') textbuffer=textview.get_buffer() def update_textview_callback(fd, condition): global keep_pulsing if keep_pulsing: progressbar.pulse() code....
In windows command prompt, F8 key can cycle through your previously entered commands i.e say you enter "ping google.com" and then "pushd <dir>". Next when you type p and then press F8 brings pushd and next F8 brings ping command. You can then hit enter to execute the corresponding command i.e ping in this case.Is there anything similar in Ubuntu Terminal running bash? Very handy to get back previously entered commands.
I would like to copy a file from some random folder and send to a "Test" folder in root directory. But I havn't found how to specify the root directory without using ../ until i reach the root directory.i.e. suppose I'm in my random folder where I want to copy my file sudo cp somefile.txt (root???)/Test
what do i put for root?Just as additional explanation, if I have a Test folder in my home directory that i wanted to transfer to, then i could simply do cp somefile.txt $HOME/Test.
Some of my short cut keys seem not ot be working. Ex Alt +F2 dose not open a pop up command line. Also would like to add some short cuts. Like Ctrl + Alt+ Backspace for reboot. I went to the short cut app and I can add a short cut key, name it, but can't seem to figure out how to assign it a function. Didn't seem intuitive to me. I'm using the UNE version on a asus eel 1000.
i need to write a short script that will compress a specific folder that`s on the Desktop (and all it`s content) and also will encrypt it with a password that is inside the script --->meaning it wont ask for a password+verification when compressing+encrypting
I've got a short mp3 file from the BBC's League of Gentlemen comedy show. In the clip, Papa Lazarou tells his dwarfs to put a poster in the local shop. Then he says "Tell them the circus is coming to town."I'd like to grab that sentence "Tell them the circus is coming to town" so I can make it into a ringtone for my phone or something.
After doing a dist upgrade I discover that I have firefox 4.0 and it has disabled adblock plus 1.3.3 and I can not get the new adblock plus since I can not uninstal the old one. Does anyone know how to fix this short of zaping the entire .mozilla file?
Ihave some video clips that i would like to use in web pages and Internet forums as animated images. is there a good free program out there that can get the job done. i also noticed that several gif images on the Internet lag like they skipped several frames, i don't want that i want the animation to play smoothly even if it means the file size will be astronomical.
I am using openSUSE 10.3.When I install software from tarball then to record time required I send output of date to beg.txt(when installation begins) and end.txt (when installation finishes).How can I append output of date to a file so I don't need two files?
I need to be able to convert HTML email messages saved as text files (.eml or .msg) to PDF documents, one PDF per email, retaining formatting and images.
Are there any Linux tools that will allow me to do this from the command line (so it can be scripted)?
if we type a command such as "locate somefilename" in the terminal we will get all the paths to the file name as output. If i want to copy only one line from that output how do i do that without using mouse?i need terminal short cut to copy one line
I did something stupid; I think while creating some new short+keys for the terminal, I must have enabled an unknown feature to me. The keypad now acts like a mouse. For example; With NumLock on, I press 7 the mouse goes north+west. I press 6 the mouse pointer goes east.