03-05-2015
Unless you supply way more info about what you want to achieve where, I feel I'm unable to give you any hint at all. Positioning the cursor in an editor usually is done with cursor movement keys, e.g. emacs style, or arrow keys, but I've got the feeling that this answer does not satisfy you too much. On screen, again, cursor keys may help, or console_codes, for which a dedicated man page exists.
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
hello
does someone knows if there is starteam (like sourcesafe ) for unix ? in command line mode ? (0 Replies)
Discussion started by: umen
0 Replies
2. UNIX for Dummies Questions & Answers
What is the difference betweeen MAILX and SENDMAIL. I have SENDMAIL configured in my system, how is it different then MAILX, espicially in the syntax of sending mail from the command line.
Thanks in advance (3 Replies)
Discussion started by: dctm_deve
3 Replies
3. Shell Programming and Scripting
Hi ,
I have a piece of code ...wherein I need to assign the following ...
1) A command line argument to a variable
e.g origCount=ARGV
2) A unix command to a variable
e.g result=`wc -l testFile.txt`
in my awk shell script
When I do this :
print "origCount" origCount --> I get the... (0 Replies)
Discussion started by: sweta_doshi
0 Replies
4. SCO
Hi Everyone
I have a few things i need help with in SCO-UNIXWARE 7.1.4 that the version am running. I am an ex-Debian user and i am finding that UNIXWARE is not the cup of Coffee i like
I would like to know it the following are available or are there substitutes
a locate command -
a... (1 Reply)
Discussion started by: Han.nlo
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
This might be a bit stupid question, but what command to use to create like a session which logs the command line, and output on to the screen?
Basically, a log to a file, where I can review what I had install, uninstall, etc.
Thank you (4 Replies)
Discussion started by: kittoinc
4 Replies
6. UNIX for Dummies Questions & Answers
I'm new to Unix and I'm looking for some assistance. We have 20 different accounts we must login to every day. Logging in has become quite the chore and most nights, we have to log out. I'm looking for a way to simply copy and paste the commands into each window to make things easier.
I have been... (2 Replies)
Discussion started by: Judo_Bear
2 Replies
7. UNIX for Advanced & Expert Users
Hi,
Well my title isn't very clear I think. So to understand my goal:
I have a script "test1"
#!/bin/bash
xvkbd -text blabla
with xbindkeys, I bind F5 key in order it runs my test1 script
So when I press F5, test1 runs.
I'm under Emacs/Vi and I press F5 in order to have "blabla" be... (0 Replies)
Discussion started by: xib.be
0 Replies
8. Shell Programming and Scripting
Hi,
i have a perl script named test.pl. It is executed as
cat *.log|test.pl
i need the complete command line args. I tried using basename $0 but im getting test.pl only but not cat *.log...
Can anyone help me on this.
Thanks in advance (3 Replies)
Discussion started by: niteesh_!7
3 Replies
9. Shell Programming and Scripting
Hi Experts,
Basically I am a SAP programmer. I don't know much about UNIX. But I got a situation, need to use UNIX script /command in my programming.
I searched the forum and found the below code.
I would like to pass the below UNIX script in my programming code. But my programming will... (1 Reply)
Discussion started by: rbadveli
1 Replies
10. Shell Programming and Scripting
I'm trying to write a bash script called YN that looks like the following
YN "Specify a question" "doThis" "doThat"
where "doThis" will be executed if the answer is "y", otherwise "doThat".
For example
YN "Do you want to list the file dog?" "ls -al dog" ""
Here's my attempt... (3 Replies)
Discussion started by: LeoKSimon
3 Replies
LEARN ABOUT PHP
mongoclient.killcursor
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)