Plesk Backup Problem Unable get daemon current status: Unable to create UNIX socket /usr/local/psa/tmp/agent-runner

Monday, November 19th, 2007

In plesk (8.x) this error appear when I try to press on “Backup” button on a particular domain.”Unable get daemon current status: Unable to create UNIX socket /usr/local/psa/tmp/agent-runner.38023: Connection refused”

(more…)

How to kill multiple tasks/scirpts

Tuesday, November 13th, 2007

I guess most of you did face situtation where you type top and see a lots of unknown or mysterious scripts/utils running that take over top screen and your machine resources.

most of the times these scripts (like the irc bots that I encountered) run via perl and disguise them selfs using names like : /usr/local/apache/bin/httpd -DSSL

ofcourse if you try to kill one another 100 run in the same time, so the best way is to

(more…)

Get notified when root logs in.

Monday, October 29th, 2007

edit the file /root/.bashrc and add the following lines: (more…)

linux – automatic ftp

Monday, October 29th, 2007

You automate ftp with the unix shell, all you need is a .netrc file which will contain the info for each server you want to connect to. (more…)

Unix: Find strings inside files and folders

Monday, June 4th, 2007

The easyiest way is this:

find {path} -type f -exec grep -l {string_to_search} {} \;

in which you only replace {path} with the path you want to search , and {string_to_search} with the string you are looking for inside the files.

Checking if a server is under ddos attack

Monday, June 4th, 2007

A quick and usefull command for checking if a server is under ddos is:

netstat -anp |grep ‘tcp\|udp’ | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -n

(more…)