Skip to content

Tag: linux

Calling shell script from C++

A shell script test.sh is called from C++ code by the command execl(“/system/bin/sh”,”sh”,”test.sh”) After the execution of shell script i need to get back the control to C++, but the shell script is just exiting not executing the next instructions in C++ code Answer You wa…

How do I know if MongoDB needs more CPU/RAM? [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 …

How to get hostname from IP (Linux)?

I’d like to get remote machine/hostname through IP Address. I found lots of answer such as nslookup, host, resloveip, etc.. but I still can’t get hostname from my target machine(cent OS, ubuntu etc…) It seems need to register to DNS server? I have a machine named test and using IP 10.1.27.97…

Print the alphabet in bash

I would like help with the following algorithm in bash (or anything accessible through bash shell): I give a number to some function, and based on that number I obtain a string of alphabet letters. Example: I do not wish to occupy more memory than I need, so approaches such as for i in {A..Z} or echo {A..Z} o…

Install Play! with activator on linux

I’m new with the framework Play! and Linux and I’m trying to install Play! scala. I’m following the official tutorial (official play! tutorial) But I have this problem : when I run this command : $ activator new my-first-app play-scala I have this warning : And when I run sudo apt-get instal…