Skip to content

Tag: linux

ksh/bash run command line from variable

I set in cmd variable the find syntax: , I use ksh shell/bash so why when I want to run the cmd as the following I not actually activate the find … it’s also not works when I run with double brackets what is the resolution for this? Remark I not want to set the cmd like this ( this

SEGFAULT after recv from socket

I have next trouble: after receiving data from sockets, server app generates segfault and shutdown. Code of client and server side are below. server: Client: In other words, client connected successfully. But after sending message, server generate segm fault error. What went wrong? Answer When running the cod…

makefile linking does not work (although no error message)

I am having issue with Makefile that I produced. It consists of one .cpp file with main() inside and I want to create executable from it. While putting in terminal make command I get following: While putting first make STutorial.o (.o created) and then make get this: Firstly, why make does not go from the beg…

Write-only mapping a O_WRONLY opened file supposed to work?

Is mmap() supposed to be able to create a write-only mapping of a O_WRONLY opened file? I am asking because following fails on a Linux 4.0.4 x86-64 system (strace log): The errno equals EACCESS. Replacing the open-flag O_WRONLY with O_RDWR yields a successful mapping. The Linux mmap man page documents the err…

How to run php properly from the command line [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 …