How can I convert from ascii to integer? The code is writing an ascii value, and I think that if I can add 48 to value. I can write, but I can’t print, a two-stage number “for example 53 or 156”. How can I print? Answer It’s usually best to think about a high level language version fir…
Tag: linux
netbeans doesnt read .bashrc from remote machine ( linux) which is required for compile
I have two box: I am working in A on a C++ project (Makefile project) and i want to make it by B’s Compiler . but I have to run “source ~/.bashrc” before make command in netbeans, how to do it? that replacement the make command with doesn’t work and add variables to project properties …
How to split a multi-gigabyte file into chunks of about 1.5 gigabytes using Linux split?
I have a file that can be bigger than 4GB. I am using the linux split command to split it by lines (that’s the requirement). But after splitting the original file, I want the size of split file to be always less than 2GB. The original file size can vary from 3-5 GB. I want to write some logic for
Can I Run docker on linux mint 13? [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 be notified when IP is up?
I would like to ping a IP-Adress an want to be notified. System: Linux Fedora. Has anybody a idea or a Software? Answer Use this shell script. Found on http://jeromejaglale.com/doc/unix/shell_scripts/ping Put the ping in a loop or run the script with cron. Instead of echoing you can send a notification.
WebVirtMgr NGINX -> Apache2 configuration
will anyone help me with transferring configuration from Nginx to Apache2? I dont know what to do with headers editing… Thanks According this: https://github.com/retspen/webvirtmgr/wiki/Install-WebVirtMgr Answer Found solution! Just make you sure, that you have libapache2-mod-wsgi installed
find and replace a String in vi editor on linux?
i am trying to replace String with new String in Linux vi editor but getting following error. Answer I’d guess the reason you’re getting that error message is because you intend to replace the string on all lines, not just the current one. In order to search all lines, add a % to your command:
sudo: no tty present and no askpass program specified When useing shell_exec
I have a php page that is trying to run a service restart using: $list=shell_exec(‘sudo /sbin/service NetworkManager restart’); I needed to edit my sudoers file to let this happen. Thus: #Defaults requiretty and apache ALL=(ALL) NOPASSWD: /sbin/service When that failed, as a test I ran: apache ALL…
could not to setup crash dump on centos7 for debug kernel
I am trying to setup kdump to generate the vmcore for kernel-3.10.0-123.el7. For the perf kernel kernel-3.10.0-123.el7.x86_64.rpm i setup kdump and kdump is working fine too, generating vmcore. Then i installed kernel-debug-3.10.0-123.el7.x86_64.rpm using yum install kernel-debug-3.10.0-123.el7.x86_64.rpm and…
Bash script to check a specific php process is running?
I am running websocket server with the nohup command like below. But it stop working after few hours.So i have created a bash script like below Then i run the script with below command like below. The work of the above script if to check my chat-server.php is running or not if it is not running then it will s…