need bash script Intrusion Detection on Linux

Hello all
I have a script but I failed on the creation of
Script is any is carried out in the shell sends the owner of the server, the message is has been implemented
For example, functioned as a detection system intruders but in smaller
Is it possible to help if you allow

I want the script so
No order is written inside the shell
Sends a message to the registered mail to the owner of the server about it, who do
Matters relating to the protection server

Can you please rephrase your post? As currently written, it is difficult to understand what your actual question is.

Thanks for the reply
Request as follows
When I enter the shell account in the Server I or anyone else we currently many orders within the shell
example:
ls , ls -la , rm and etc...

I want to work a small script the task of any order applied within the shell sends a message to the server administrator
Have been implemented within the following command shell

---------- Post updated at 06:37 AM ---------- Previous update was at 03:57 AM ----------

Abbreviation
Any is carried out in the Ssh strain sent to the server a warning message was to implement this order, even if the server or other implement it

check if this is what you are looking for
http://www.unix.com/security/111034-bash-auditing.html
http://www.unix.com/aix/45407-turning-auditing-aix-4-3-a.html

Did not take advantage of much