Telnet [Unable to connect to remote host: Connection refused]

0.Configure Guest OS via Virtualbox as follows. 1.Install telnet use this command in main OS terminal: 2.Edit /etc/inetd.conf in main OS using your favourite file editor with root permission,add this line: 3.Edit /etc/xinetd.conf in main OS,make its content look like following: 4.Use this command to start telnet server in main OS: That was all. By … Read more

Implementing a tree in C++

Here is a simple method of creating a hierarchical tree (n-ary with no special properties), using STL containers. It isn’t pre-built, but it is dead simple, and takes advantage of some STL properties. To create your own searching, you’d have to implement your own algorithms, but that should be fairly painless.

How to grep and replace

I need to recursively search for a specified string within all files and subdirectories within a directory and replace this string with another string. I know that the command to find it might look like this: But how can I replace every instance of string_to_find with another string?

How to get the process ID to kill a nohup process?

When using nohup and you put the task in the background, the background operator (&) will give you the PID at the command prompt. If your plan is to manually manage the process, you can save that PID and use it later to kill the process if needed, via kill PID or kill -9 PID (if you need to force kill). … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)