Skip to content

Tag: linux

Linux or Mac: merging columns from different files mixes the columns

I am trying to use “paste” command to merge columns from few files but it makes a bad merge as follows. I appreciate your help. File1.csv: A   2 B   3 C   4 File2.csv: AA   6 BB   8 CC   2 output expected(required): A 2 AA 6 B 3 BB 8 C 4 CC 2 The command I used: also used output.csv(wrong output t…

bash: daemonizing by forking process as a new child

I have a bash script which should daemonize itself after being run. My solution looks as follows: However, putting the whole script itself inside the function child does not seem the correct thing to do. Unfortunately exec & won’t fork-off the whole process into a backgrounded child. How can a achie…

Serial data over UART gets corrupted

I’m developing an application for a development board (Beagle Bone Black) that will send some data over UART peripheral. The developing board runs Linux Kernel (some Debian distribution, 3.8.x Linux Kernel version). For sending and receiving data over UART I use the standard UNIX API: open(), read(), an…

Accessing files outside the root directing

My client asked me to do a website where a user can enter a path on the machine, PHP should scan the path and load all the media files in the directory and subdirectories. The user can enter any path, Desktop, or external drives, whatever, outside the root directory. That’s what the client wants and he&…

Is there any merit about assembly language? [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago. Improve this question I heard some of developers use assembly language in embedded system. …