8 More Discussions You Might Find Interesting
1. SCO
Hi!
I am using Emacs 22.3.1 and the Control-G command will not work to cancel. I took my init.el file out of the mix and it stills does not work. I am not sure when I upgraded from 20.4 to 22.3.1, if it worked, but it certainly does not now.
Any thoughts... (6 Replies)
Discussion started by: trolley
6 Replies
2. Shell Programming and Scripting
I am trying to modify the "corestat v1.1" code which is in Perl.The typical output of this code is below:
Core Utilization
CoreId %Usr %Sys %Total
------ ----- ----- ------
5 4.91 0.01 4.92
6 0.06 ... (0 Replies)
Discussion started by: Zam_1234
0 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
I am new to this forum and a beginner in unix. Please correct me if I put the question in a wrong way..
How to use emacs editor? Also how to open existing emacs files with .cgi format?
I have the following link :-
http link i.e. url and path : /abc/xyz.dev/xyz/documents
What... (7 Replies)
Discussion started by: swathi123
7 Replies
4. Shell Programming and Scripting
Good afternoon
I need to KILL a process in a single command sentence, for example:
kill -9 `ps -aef | grep 'CAL255.4ge' | grep -v grep | awk '{print $2}'`
That sentence Kills the process ID corresponding to the program CAL255.4ge.
However it is possible that the same program... (6 Replies)
Discussion started by: enriquegm82
6 Replies
5. Shell Programming and Scripting
I am writing a ksh script in cygwin though it could just as easily be bash and am trying to make an alert for myself where the bell rings many times like
print '\a'or
echo '^G'except I want it to ping me many times not just once. For some reason doing
print '\a\a\a\a\a\a\a\a\a\a'or similar... (7 Replies)
Discussion started by: benalt
7 Replies
6. AIX
Hi Everyone:
Last Thursday my system come up those error log and haven't show up any details. Does anyone know what it mean? I need help :confused:
9359F226 0424184208 N U LVDD
00D2B9FE 0424183208 N U tok0
D0775966 0424182908 N U tok0
A9428A1A 0424170108 N U tok0
71B416E1 ... (0 Replies)
Discussion started by: fla22
0 Replies
7. Red Hat
The crisis is over. I am just doing postmortem on how we handled it. So this is just an exercise in academics.
We have a mission critical system running on RED Hat Linux. It is a turnkey system "managed 100% by the vendor". I put this is quotes because we had an event last night that... (0 Replies)
Discussion started by: Skyybugg
0 Replies
8. Shell Programming and Scripting
Hello
I am trying to tar a whole directory. My problem is that I have to omitt a special subdirectory.
Can you tell my how I am supposed to do that?
Unfortunately I am not very good in regular expressions and in programming. :(
Thanks for any help.
Greetings
Marcus (1 Reply)
Discussion started by: Fwurm
1 Replies
MONGOCLIENT.KILLCURSOR(3) 1 MONGOCLIENT.KILLCURSOR(3)
MongoClient::killCursor - Kills a specific cursor on the server
SYNOPSIS
public bool MongoClient::killCursor (string $server_hash, int|MongoInt64 $id)
DESCRIPTION
In certain situations it might be needed to kill a cursor on the server. Usually cursors time out after 10 minutes of inactivity, but it
is possible to create an immortal cursor with MongoCursor::immortal that never times out. In order to be able to kill such an immortal cur-
sor, you can call this method with the information supplied by MongoCursor::info.
PARAMETERS
o $server_hash
- The server hash that has the cursor. This can be obtained through MongoCursor::info.
o $id
- The ID of the cursor to kill. You can either supply an int containing the 64 bit cursor ID, or an object of the MongoInt64
class. The latter is necessary on 32 bit platforms (and Windows).
RETURN VALUES
Returns TRUE if the method attempted to kill a cursor, and FALSE if there was something wrong with the arguments (such as a wrong
$server_hash). The return status does not reflect where the cursor was actually killed as the server does not provide that information.
ERRORS
/EXCEPTIONS
This method displays a warning if the supplied $server_hash does not match up with an existing connection. No attempt to kill a cursor is
attempted in that case either.
EXAMPLES
Example #1
MongoClient.killCursor(3) example
This example shows how to connect, do a query, obtain the cursor information and then kill the cursor.
<?php
$m = new MongoClient();
$c = $m->testdb->collection;
$cursor = $c->find();
$result = $cursor->next();
// Now the cursor is valid, so we can get the hash and ID out:
$info = $cursor->info();
// Kill the cursor
MongoClient::killCursor( $info['server'], $info['id'] );
?>
PHP Documentation Group MONGOCLIENT.KILLCURSOR(3)