Skip to content

Tag: linux

How to solve librustdoc.so missing when using rustbook tool?

I’ve used to install rustbook successfully, but when I run rustbook I get an error: But I can find out this .so file. How can I let rustbook know the path to librustdoc-c0dcaea09a16c7ec.so? rustc 1.16.0-nightly (4ecc85beb 2016-12-28) rustdoc 1.16.0-nightly (4ecc85beb 2016-12-28) rustup show: Answer This…

Debugging a linux daemon process written in C

On occasion a daemon I wrote in C gets these error messages: My question is how can I examine that address in libc-2.19.so to see which function is being called when the error occurs? I tried using gdb but I get : Answer With the data you provide there’s very little that can be done here to make a diagn…

Bash replacing text in file

I want to automate changes in a File. For example ;max_input_vars = to max_input_vars = 10000 in /etc/php5/cli/php.ini with a script. How can I do that? I know command sed will do something like that. Answer Try this command:

Redirecting output of a program to a rotating file

I am trying to redirect the output of a continuously running program to a file say error_log. The command I am using looks like this, where myprogram.sh runs continuously generating data and writing to /var/log/httpd/error_log myprogram.sh >> /var/log/httpd/error_log Now I am using logrotate to rotate t…