PHP CGI command not working with Wordpress multisites

I have installed multisite for Wordpress on my site. Now i am trying to execute this command to run my custom cron using Putty:

sudo php-cgi -f admin-ajax.php action=test1121

But this is not working for me due to ms-setting.php file. Please help me to sort out this issue.