Remote execute command

hi all,
how can I execute some command remotely??
I cannot connect throw rsh or rlogin .
regards

what about SSH :slight_smile: ?

I can SSH . but I want to login and execute command automatically from my web based software .for this I want remote shell .
thanks for your notice

actually you can do that with ssh, or you can use API (for php): http://wiki.mikrotik.com/wiki/API#Other_example_clients

It so great and i going to work on it.
But for example when I want to add some src-address to my web-proxy i get error.I think i have a mistake in my source.can you check it please .

<?php require('routeros_api.class.php'); $API = new routeros_api(); //$API->debug = true; if ($API->connect('192.168.0.1', 'admin', 'admin')) { $API->write('/ip/proxy/access/add/=src-address=1.1.1.1'); // $ARRAY = $API->read(); // print_r($ARRAY); $API->disconnect(); { ?>