Skip to main content
9 events
when toggle format what by license comment
Mar 16, 2021 at 5:55 comment added DB guy @JJussi thatnks it worked
Mar 16, 2021 at 5:54 vote accept DB guy
Mar 16, 2021 at 5:16 comment added JJussi @DBguy change "query" to 'query'... Because first "-character terminates string what started after eval=" OR use out=$(mongo --quiet --eval="db.currentOp({op:\"query\"})") ; echo $out
Mar 16, 2021 at 5:12 history edited JJussi CC BY-SA 4.0
Adding bit of meat around bone answer.
Mar 16, 2021 at 5:08 comment added DB guy why doesn't it work when i put out=$(mongo --quiet --eval="db.currentOp({op:"query"})") ; echo $out i get output 2021-03-16T10:37:14.575+0530 E QUERY [thread1] ReferenceError: query is not defined : @(shell eval):1:15 2021-03-16T10:37:14.575+0530 E QUERY [thread1] ReferenceError: query is not defined : @(shell eval):1:15
Mar 16, 2021 at 4:59 vote accept DB guy
Mar 16, 2021 at 5:06
Mar 15, 2021 at 20:26 comment added nbk you should must add always some text so that ithers can use it or adapt it, you just triggert the low qualtity review
Mar 15, 2021 at 19:27 review Low quality posts
Mar 15, 2021 at 20:26
Mar 15, 2021 at 19:06 history answered JJussi CC BY-SA 4.0