Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
Get text from GTK entry
I’m trying to get what a user has inputed in a text field (entry) but when i run it i keep getting null from gtk_entry_get_text. Errors : Code : So how do i get the input from the user and not just null every time? Answer Pointer to pointer is needed: And in main:
How are netlink sockets in the Linux kernel different from polling from userland?
I have doubt about the functioning of netlink socket in kernel-application interaction context. As I have read that netlink socket is used for event based notification from kernel to application. The benefit of this is Application is not required to poll. But as in case of netlink socket also, it will also be…
how to move to the end of line in screen linux
If CTRL+A+a is how you move to the beginning of a line in screen then what is the shortcut key to go to end of the line aside from the End key in screen. I tried CTRL+A + I like in vim. no luck. Also OT: if you exit a shell will the session persist? Answer CTRL + E will
Grouping child processes with setpgid()
I just don’t get the whole thing. My process tree: I want to make a process group (3, 4, 5), and send this group a signal from, say, 2. I tried it this way: Where should I place my setpgid() block? I tried placing it in 3, 0 and every other process, but setpgid()s return either “No such process…
Insert into mysql from linux terminal
I have a question. i can insert into mysql database from linux terminal a record with this command: Now i have a file in Linux with some records for example: i don’t know how can i insert all records to the file to mysql database from linux terminal. I intent with a bash file but i don’t know =( A…
How do I get the last word in each line with bash
For example i have a file: and i need: i intent with “awk” but the problem is that the words are in different space Answer Try To get the result in one line as in your example, try: output: Pure bash:
Edit linux capabilities in Perl
In a C program, you can edit your capabilities with cap_set_proc from libcap. How can I achieve the same in a Perl program? Answer Linux::Prctl may meet your needs. If not, you can use syscall() and try to do it the hard way. If that’s unpalatable, too (and I would find it so), I’m sure CPAN would…
subversion pre-commit hook error code 255
I added pre-commit hook script to the repository. It always gives below error while committing: I have already checked that my pre-commit script is having executable permission and its a bash script. is added in the beginning of the file. Even if I write in the beginning of the file, it is not allowing me to …
Cannot access the shared folder in Virtual Box
I have problem with accessing the shared folder. My host OS is Windows 7 Enterprise Edition SP1, and the guest OS is Ubuntu Linux 10.04 Desktop Version. I’m using Virtual Box 4.2.10, and I have installed VBox guest add-on and Oracle VM VirtualBox Extension Pack. When I put commend: mat@mat-desktop:~$ cd…