10 More Discussions You Might Find Interesting
1. Programming
I was trying to run a connect four game in C++, but I got this error while compiling in Cygwin:
c4.cpp: In member function ‘void connectFour::clearScreen()’:
c4.cpp:162:35: error: ‘system’ was not declared in this scope
system("clear");
... (5 Replies)
Discussion started by: DyslexicChciken
5 Replies
2. AIX
Dear Friends ,
From 'last' or 'lastlog' command , I can get the last login informations of the users . now as a system admin , If I want to delete the log information from this 'last' 'lastog' command , then is it possible to do ?
plz inform ... ... (1 Reply)
Discussion started by: shipon_97
1 Replies
3. Shell Programming and Scripting
Hello,
I have a script which creates a certain text file.
Whenever I call it, I need to recreate this file, because I have no need in the previous content.
So I thought to remove the file every time I call the script, and that way I am sure that the previous content will not interrupt me.... (2 Replies)
Discussion started by: shira
2 Replies
4. UNIX for Dummies Questions & Answers
hi,
i have an unix command which is as follows:
ctmfw /work/CDFC/landing/ZORC.txt CREATE 0 60 1 10 240
I think a txt file called ZORC gets created in the mentioned directory, i am not sure what 0 60 1 10 240 is. Is my understanding correct and also let me know what those numbers denote?... (4 Replies)
Discussion started by: eljcmscrlk
4 Replies
5. UNIX for Dummies Questions & Answers
Hi...
i have one doubt pls...
1)can we clear the command line history in UNIX for a paricular login(scadm/root)if so how?.
2) can we see the time at which command executed.
history is showing like :
100 display
101 lock
102 exit (7 Replies)
Discussion started by: gincemathew
7 Replies
6. Linux
I have a log file on our system which fills up with lines that have been timestamped, as follows....
03/03/2008 10:56:06:815] (ERROR) balance: continuing session to genapp02 : 18500
03/03/2008 10:56:06:820] (ERROR) balance: continuing session to genapp02 : 18500
03/03/2008 10:56:07:003]... (2 Replies)
Discussion started by: davesimm
2 Replies
7. UNIX for Advanced & Expert Users
Hai,
I have a program which updates the result in a log file, as the program runs 24*7,the size of log file keeps on increasing.
Can you help me with a shell command which will clear the content of a log file in use.
1) I tried tail -10 logfile > logfile ( the content is not changed )
2) >... (10 Replies)
Discussion started by: coolbhai
10 Replies
8. UNIX for Dummies Questions & Answers
Hello All,
I like this forum btw, and have only been lurking for about a day.
Recently I purchased some new hardware (AMD Athlon 64 3200+ and a Asus K8V Deluxe Motherboard), and I want to find an OS that can take advantage of the 64 bit processor.
Basically, what are the differences... (2 Replies)
Discussion started by: RoY_mUnSoN
2 Replies
9. UNIX for Dummies Questions & Answers
Hi...
how can i clear the Memory on AIX 4.3.3 without rebooting (like flush memory on oracle database )
THANX
fenomen (2 Replies)
Discussion started by: fenomen
2 Replies
10. Programming
I searched the post and someone said to clear the screen in C, use
printf("\033[2J"); ??
However, this doesn't work...typo or no.
What is an equivalent command to 'CLS' in DOS/'clear' in UNIX to clear the screen and go to top of screen??
Thank you. (2 Replies)
Discussion started by: giannicello
2 Replies
CURSES_CLEAR(3) BSD Library Functions Manual CURSES_CLEAR(3)
NAME
curses_clear, clear, wclear, clearok, clrtobot, clrtoeol, erase, werase, wclrtobot, wclrtoeol -- curses clear window routines
LIBRARY
Curses Library (libcurses, -lcurses)
SYNOPSIS
#include <curses.h>
int
clear(void);
int
clearok(WINDOW *win, bool flag);
int
clrtobot(void);
int
clrtoeol(void);
int
erase(void);
int
wclear(WINDOW *win);
int
werase(WINDOW *win);
int
wclrtobot(WINDOW *win);
int
wclrtoeol(WINDOW *win);
DESCRIPTION
These functions clear all or part of stdscr or of the specified window.
The clear() and erase() functions erase all characters on stdscr. wclear() and werase() perform the same function as clear() and erase(),
respectively, excepting that the specified window is cleared.
By setting flag to TRUE, the clearok() function is used to force the next call to wrefresh() to clear and completely redraw the window given
in win.
The function clrtobot() will clear stdscr from the current row to the bottom of the screen. clrtoeol() will clear stdscr from the current
column position to the end of the line. wclrtobot() and wclrtoeol() are the same as clrtobot() and clrtoeol(), respectively, excepting the
window specified is operated on instead of stdscr.
RETURN VALUES
Functions returning pointers will return NULL if an error is detected. The functions that return an int will return one of the following
values:
OK The function completed successfully.
ERR An error occurred in the function.
SEE ALSO
curses_refresh(3)
STANDARDS
The NetBSD Curses library complies with the X/Open Curses specification, part of the Single Unix Specification.
HISTORY
The Curses package appeared in 4.0BSD.
BSD
August 12, 2002 BSD