Sponsored Content
Operating Systems Solaris Help with Reviving a NETRA240 Pls? Post 303026798 by hicksd8 on Monday 3rd of December 2018 12:17:06 PM
Old 12-03-2018
Yes, that is progress indeed. Well done!

I was lucky. At age 62 my treatment was a single coronary stent and selling my group of companies to reduce the stress. I'm now 68.
This User Gave Thanks to hicksd8 For This Post:
 

10 More Discussions You Might Find Interesting

1. Linux

pls help me

we hv a big enviroment networked. we use squid proxy. access allowed by src address previously. we have win2000 network with ads. my requirement is the proxy should allow domain users only for access. how can i map my windows userdatabase with squid is there any thing specific which has 2 b... (1 Reply)
Discussion started by: sriram.s
1 Replies

2. UNIX for Dummies Questions & Answers

Need help pls

Hi, I'm a newbie. I need help on my first assignment in UNIX. 1. How do I determine the number of non-empty directories? I was told to create a variable ARCHIVE, which points to the directory that contains the archive of the messages. But I'm so dumb and I don't even know how to do this. 2. In... (1 Reply)
Discussion started by: hygsg
1 Replies

3. UNIX for Dummies Questions & Answers

Pls Help

Hi every one I have got very very bad Email, My question is: How can I get all information about that f*** Email, I do mean IP,reall name, Adress, user name, password etc... I wonder if there is any program or website that I can see that email, help me please When I used windows Xp(old... (2 Replies)
Discussion started by: Cano
2 Replies

4. UNIX for Dummies Questions & Answers

Help pls!

Hi... Why should I press F1 to start windows?! I have Xp in my computer... thx 4 help Cano (1 Reply)
Discussion started by: Cano
1 Replies

5. Shell Programming and Scripting

pls help

I have a list of variables: ss1, ss5, ss6, ss8, st2 etc. (these values are not fixed, configurable). Now, I have assigned ss5=”test”. And I want to search in the list for the string “test” to know which variable is having the value “test”. Can u pls tell me how to do this? (10 Replies)
Discussion started by: kanchan_cp
10 Replies

6. Shell Programming and Scripting

pls help

Hi, I need your help guys. I have two data files, namely 101.amberized.pdb & 101.pdb . Now I want to replace the whole 3rd column of 101.amberized.pdb with the 3rd column of 101.pdb file. How do I do it in shell? Thanks in advance Parimal (11 Replies)
Discussion started by: chuchu
11 Replies

7. Shell Programming and Scripting

Pls Pls do help me

When i run this command, everything is ok. The file can be email and attached but soon after i download the file, the file cant be read. It's seem corrupted. Totally cant be read although i'm using context or wordfile. Original file generated at ek_bkup/alert/tbspace_datafile.log is OK..... ... (7 Replies)
Discussion started by: adzuanamir
7 Replies

8. UNIX for Dummies Questions & Answers

HELP PLs

I have this code: #!/bin/sh awk 'BEGIN NR == 2 repl = "PHI" $4 = repl print $0 'dryloop.txt and this code: #!/bin/sh sed -e '1s/\|$/\|COMID\|/g' -e 's/^087.*$/&PHI\|g' hl.dsldryloop > textdry.txt My code won't work. I want to change the COMID of lines starting with 087 . this is my... (15 Replies)
Discussion started by: arkhei
15 Replies

9. Homework & Coursework Questions

Help pls

How to find the ten most common words in a file (1 Reply)
Discussion started by: jass
1 Replies

10. Solaris

NETRA240 in HLR CDMA Wireless Exchange... help is apreciated

Greetings, I hope my post finds you all OK, I have a Netra240 server in an HLR inside a wireless CDMA Exchange, it works as a Hard Disk Unit (HDU) as shown in Local Management Terminal (LMT) as show in the picture 1 attached. The power went down because of a power failure in main UPS, when... (2 Replies)
Discussion started by: Sharista
2 Replies
MONGODB.COMMAND(3)							 1							MONGODB.COMMAND(3)

MongoDB::command - Execute a database command

SYNOPSIS
public array MongoDB::command (array $command, [array $options = array()], [string &$hash]) DESCRIPTION
Almost everything that is not a CRUD operation can be done with a database command. Need to know the database version? There's a command for that. Need to do aggregation? There's a command for that. Need to turn up logging? You get the idea. This method is identical to: <?php public function command($data) { return $this->selectCollection('$cmd')->findOne($data); } ?> PARAMETERS
o $command - The query to send. o $options - An array of options for the index creation. Currently available options include: o "socketTimeoutMS"This option specifies the time limit, in milliseconds, for socket communication. If the server does not respond within the timeout period, a MongoCursorTimeoutException will be thrown and there will be no way to determine if the server actually handled the write or not. A value of -1 may be specified to block indefinitely. The default value for MongoClient is 30000 (30 seconds). The following options are deprecated and should no longer be used: o "timeout"Deprecated alias for "socketTimeoutMS". o $hash - Set to the connection hash of the server that executed the command. When the command result is suitable for creating a MongoCom- mandCursor, the hash is intended to be passed to MongoCommandCursor.createFromDocument(3). The hash will also correspond to a connection returned from MongoClient.getConnections(3). CHANGELOG
+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 1.5.0 | | | | | | | Renamed the "timeout" option to "socketTime- | | | outMS". Emits E_DEPRECATED when "timeout" is | | | used. Added hash by-reference parameter. | | | | | 1.2.0 | | | | | | | Added options parameter with a single option: | | | "timeout". | | | | +--------+---------------------------------------------------+ RETURN VALUES
Returns database response. Every database response is always maximum one document, which means that the result of a database command can never exceed 16MB. The resulting document's structure depends on the command, but most results will have the ok field to indicate success or failure and results containing an array of each of the resulting documents. EXAMPLES
Example #1 MongoDB.command(3) "distinct" example Finding all of the distinct values for a key. <?php $people = $db->people; $people->insert(array("name" => "Joe", "age" => 4)); $people->insert(array("name" => "Sally", "age" => 22)); $people->insert(array("name" => "Dave", "age" => 22)); $people->insert(array("name" => "Molly", "age" => 87)); $ages = $db->command(array("distinct" => "people", "key" => "age")); foreach ($ages['values'] as $age) { echo "$age "; } ?> The above example will output something similar to: 22 87 Example #2 MongoDB.command(3) "distinct" example Finding all of the distinct values for a key, where the value is larger than or equal to 18. <?php $people = $db->people; $people->insert(array("name" => "Joe", "age" => 4)); $people->insert(array("name" => "Sally", "age" => 22)); $people->insert(array("name" => "Dave", "age" => 22)); $people->insert(array("name" => "Molly", "age" => 87)); $ages = $db->command( array( "distinct" => "people", "key" => "age", "query" => array("age" => array('$gte' => 18)) ) ); foreach ($ages['values'] as $age) { echo "$age "; } ?> The above example will output something similar to: 87 Example #3 MongoDB.command(3) MapReduce example Get all users with at least on "sale" event, and how many times each of these users has had a sale. <?php // sample event document $events->insert(array("user_id" => $id, "type" => $type, "time" => new MongoDate(), "desc" => $description)); // construct map and reduce functions $map = new MongoCode("function() { emit(this.user_id,1); }"); $reduce = new MongoCode("function(k, vals) { ". "var sum = 0;". "for (var i in vals) {". "sum += vals[i];". "}". "return sum; }"); $sales = $db->command(array( "mapreduce" => "events", "map" => $map, "reduce" => $reduce, "query" => array("type" => "sale"), "out" => array("merge" => "eventCounts"))); $users = $db->selectCollection($sales['result'])->find(); foreach ($users as $user) { echo "{$user['_id']} had {$user['value']} sale(s). "; } ?> The above example will output something similar to: User 49902cde5162504500b45c2c had 14 sale(s). User 4af467e4fd543cce7b0ea8e2 had 1 sale(s). Note Using MongoCode This example uses MongoCode, which can also take a scope argument. However, at the moment, MongoDB does not support using scopes in MapReduce. If you would like to use client-side variables in the MapReduce functions, you can add them to the global scope by using the optional scope field with the database command. See the MapReduce documentation for more informa- tion. Note The out argument Before 1.8.0, the out argument was optional. If you did not use it, MapReduce results would be written to a temporary col- lection, which would be deleted when your connection was closed. In 1.8.0+, the out argument is required. See the MapReduce documentation for more information. Example #4 MongoDB.command(3) "geoNear" example This example shows how to use the geoNear command. <?php $m = new MongoClient(); $d = $m->demo; $c = $d->poiConcat; $r = $d->command(array( 'geoNear' => "poiConcat", // Search in the poiConcat collection 'near' => array(-0.08, 51.48), // Search near 51.48oN, 0.08oE 'spherical' => true, // Enable spherical search 'num' => 5, // Maximum 5 returned documents )); print_r($r); ?> SEE ALSO
MongoCollection::aggregate, MongoCollection::findAndModify, MongoCollection::group. MongoDB core docs on database commands and on individual commands: findAndModify, getLastError, and repairDatabase (dozens more exist, there are merely a few examples). PHP Documentation Group MONGODB.COMMAND(3)
All times are GMT -4. The time now is 03:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy