I’ve set a script in my root crontab that is supposed to restart my machine with the reboot command. However, I am getting a reboot: command not found despite the fact that reboot is in the root user’s path. My script: root user crontab: …yes, this is only a temporary workaround while I figu…
Tag: linux
Collect and sum statistics of `strace` commands?
I know that I can runstrace -c ls to collect system call statistics on the ls executable. However, I want to run the command strace -c {some executable here} mulitiple times over different executables, merge the individual results, and then write to a single file. I want to merge the ‘syscall’ and…
Conflict while Installing MariaDB on Centos6.9 that has Mysql already installed [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about programming within the scope defined in the help center. Closed 5 years ago. Improve this question I have VPS Centos 6.9 server with Cpanel, This server has mysql56 i…
Send request to CMake server from the Linux command line
I would like to play around with the CMake server mode from the Linux command line. The documentation tells me to start CMake like the following: But for me it works only this way: I tried to send a request to the server, but I get only the hello response: How can I send requests to the CMake server? Answer
php not working on ubuntu desktop 16.04.02
I need php < then 5.3 becouse software I inherited use mssql library. SO I have set up linux, and apache (working fine via localhost or ip) then: I get libxml in version below 2.9 (otherwise make php will not work – compiler will lack some older libraries I belive) So I have libxml instaled and go wi…
Alternative for ‘enter’ key in python interpreter?
Recently my Enter key stopped working. For sure it’s a hardware problem!. However I managed so many days without Enter key by using the alternatives ctrl + j or ctrl + m .Running python programs was fine as I would run the script by saving it in a file. Now that I need to give commandline values I have …
sudo doesn’t work, but root user works [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 …
“usermod: UID ‘0’ already exists” why?
As part of my Docker image I have the following ENTRYPOINT script: The image compiles successfully. When I try to run the container by running the following command docker run -it temp bash I got the following output: Why my UID is 0? I can’t find where is my error here, any help is more than welcome. U…
remove oracle user without uninstalling oracle ubuntu16.04 [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 …
Bash ‘swallowing’ sub-shell children process when executing a single command
Bumped into an unexpected bash/sh behavior and I wonder someone can explain the rationale behind it, and provide a solution to the question below. In an interactive bash shell session, I execute: $ bash -c ‘sleep 10 && echo’ With ps on Linux it looks like this: _ -bash _ bash -c sleep 10 &…