I've tried to use this command:
If I look with it using the head command it seems to work, but when I try to save it into a new file (>newfile) all I get is an empty file!!!. What am I doing wrong???
Thanks
Last edited by Scott; 06-27-2010 at 06:22 AM..
Reason: Code tags, please...
Definitely a unix dummy. I edited the paths in the /etc/profile file - following the instructions on an install package. Now can't use vi, cat pg ls or any other unix commands. Guess I'm in big trouble.
Path reads
MANPATH=/opt/hpnp/man
PATH=/opt/hpnpl/bin
LD_LIBRARY_PATH=/opt/hpnp/lib
... (4 Replies)
Hi Guys,
Working on a script in the Vi editor that requires the fifth column of a particular line changed.
e.g.
Name:Address:email:A
where "A" needs to be changed to what the variable $access holds ($access currently has the words admin access in it)
when I use this command :
`sed... (3 Replies)
I have X4500 and I created a user. I wanted to give him root privileges and for editing the sudoers files I typed visudo sudoers. But it said visudo command not found. After googling I found that we need to set path in etc/profile. I edited that and put the following command
... (3 Replies)
I was editing my text file in gvim & I was getting message that its changed & to load again.
I work in a workplace environment with everyone having there username..
How can I know that who edited my file? (4 Replies)
I was trying to write a script that will process recently creatd file.
From below, the script should process input_20111230.dat file.
sam:/top/work/data/input: ls -ltr input_*.dat
-rw-rw-rw- 1 work edprod 455668 Dec 24 09:16 input_20111224.dat
-rw-r--r-- 1 work edprod ... (7 Replies)
I need to copy the log file dynamically and that should run in loop , which means it should pick what ever the latest file is updated in that directory.
I am able to display the list and copy to directly but i have no idea on how to pick the dynamically updated files.
when i use this code, i... (1 Reply)
Hi,
I would like to ask about the notepad++ text editor application, Although there are alternative and more great text editor in linux (gedit, geany, jedit) im still using the notepad++ sometimes cause for some of my own reason one of those is the minimalist text(what i mean is notepad++ has a... (2 Replies)
Hi,
I have an input file like this
line1
line2
line3 hello unix how are you
This is what I am expecting my output to be
line1
line2
#line3 hello unix how are you
line3 hello (3 Replies)
Hi,
I am working on a script where I am adding adding colors to few of the info in the output.
Now , after that is done , I see colour codes in log files which I don't want to see.:mad::mad::mad::mad:
So , I tried using sed command in script as below which gives me o/p (new.log) as blank file... (7 Replies)
Discussion started by: Dream4649
7 Replies
LEARN ABOUT MOJAVE
glutignorekeyrepeat
glutIgnoreKeyRepeat(3GLUT) GLUT glutIgnoreKeyRepeat(3GLUT)NAME
glutIgnoreKeyRepeat - determines if auto repeat keystrokes are reported to the current window
SYNTAX
#include <GLUT/glut.h>
void glutIgnoreKeyRepeat(int ignore);
ARGUMENTS
ignore Non-zero indicates auto repeat keystrokes should not be reported by the keyboard and special callbacks; zero indicates that auto
repeat keystrokes will be reported.
DESCRIPTION
glutIgnoreKeyRepeat determines if auto repeat keystrokes are reported to the current window. The ignore auto repeat state of a window can
be queried with glutDeviceGet(GLUT_DEVICE_IGNORE_KEY_REPEAT).
Ignoring auto repeated keystrokes is generally done in conjunction with using the glutKeyboardUpFunc and glutSpecialUpFunc callbacks to
repeat key releases. If you do not ignore auto repeated keystrokes, your GLUT application will experience repeated release/press call-
backs. Games using the keyboard will typically want to ignore key repeat.
GLUT IMPLEMENTATION NOTES FOR X11
X11 sends KeyPress events repeatedly when the window system's global auto repeat is enabled. glutIgnoreKeyRepeat can prevent these auto
repeated keystrokes from being reported as keyboard or special callbacks, but there is still some minimal overhead by the X server to con-
tinually stream KeyPress events to the GLUT application. The glutSetKeyRepeat routine can be used to actually disable the global sending
of auto repeated KeyPress events. Note that glutSetKeyRepeat affects the global window system auto repeat state so other applications will
not auto repeat if you disable auto repeat globally through glutSetKeyRepeat.
SEE ALSO
glutSetKeyRepeat, glutDeviceGet, glutKeyboardFunc, glutKeyboardUpFunc, glutSpecialFunc, glutSpecialUpFunc
AUTHOR
Mark J. Kilgard (mjk@nvidia.com)
GLUT 3.7 glutIgnoreKeyRepeat(3GLUT)