I’m having some trouble with this program. I know what a fork() function does. It is used to create a new process from an existing process. The new process is called the child process, and the existing process is called the parent. The parent returnes the child’s pid and the child returns 0. That said, I find hard to understand
Tag: ubuntu
sorting takes 2 hours on vagrant – approx 100m lines
What can I do to optimize this sort? I am running: and then: getting the following output: here’s the datatset that I am using: a preview of the original dataset: here are the details on the vagrant machine: What can I do to optimize this sort? Answer Split your data into several files, sort each file in parallel, then merge
How to remove Ubuntu entries from UEFI [closed]
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 Exchange site, you can leave a comment to explain where the question
How to read a file from a remote device from C program and Ubuntu OS? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 7 years ago. Improve this question I am trying to read a file located at remote device, it has Debian OS. My C program is running
How to trap memory reads and writes using sigsegv?
How do I trick linux into thinking a memory read/write was successful? I am writing a C++ library such that all reads/writes are redirected and handled transparently to the end user. Anytime a variable is written or read from, the library will need to catch that request and shoot it off to a hardware simulation which will handle the data
Bash : Syntax Error Near Unexpected Token `’table_name’`
I’m getting started learning Laravel 5 in Ubuntu 15.04. So, I’m done creating my database but when I’m trying to insert data using Terminal, I’ve got some error that says Here’s my terminal inputs in my laravel app directory It’s just an simple queries on adding datas inside my database but I can’t get through this thing. Is there any
command blkid don’t show my partitions UUID
I’m using Ubuntu. command blkid or blk /dev/sda2 in LPIC-1 module 104.3 (mounting and unmounting). but these commands don’t show me the expected results. blkid is installed and also I can see man blkid !!! Could you guide me to fix this? Answer Run sudo blkid After that you will be able to get the same result with simply running
C: Trying to implement unnamed pipes
I’m trying to make a program that simlutates the terminal’s nameless pipes. For example, if I want to run the command: ls –l | grep ‘10’ would be: ./pipes ls -l – grep ’10’ (I use – instead of |). However, my program doesn’t work because execvp fails (bad adress). This seems impossible to me. What am I doing wrong?
How to remove python in /usr/local/bin/ [closed]
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 Exchange site, you can leave a comment to explain where the question
How to enable confirmation alert when using ‘rm’ command to delete files / folders? [closed]
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 Exchange site, you can leave a comment to explain where the question