Skip to content

How do you install .Net Core on Ubuntu without using sudo?

The current installation instructions for Ubuntu 14 require the use of sudo (https://www.microsoft.com/net/core#ubuntu). I don’t have root permissions on a particular Ubuntu 12 server that I need to install .Net Core on. I have tried to download the Ubuntu files (https://www.microsoft.com/net/download#c…

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&…