It works for me, i found special characters i your command. the double quote is the culprit. try this,
var result=db.currentOp({“active” : true,“secs_running” : { “$gt” : 1 }});
printjson(result);
It works for me, i found special characters i your command. the double quote is the culprit. try this,
var result=db.currentOp({“active” : true,“secs_running” : { “$gt” : 1 }});
printjson(result);