12-25-2003
Hello, I've seen your question, you can use ncurses library to solve your problem. Maybe "mvprintw" function will help you, but do note that when you compile your project, please add "-lcurses" option to your compiler, that is :
g++ -lcurses my.cpp
By the way, you can also use newt library.
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
*.xml files stored on date wise folders. I need to extract *.xml files from all the folders. File size is lessthan or equal to 2K. Please let me know command or some shell program to due this job on linux m/c
This is urgent,
Thanks in advance
- Bache Gowda (3 Replies)
Discussion started by: bache_gowda
3 Replies
2. UNIX for Dummies Questions & Answers
Hi there,
Is there any equivalent command in UNIX for gotoxy() function of C? I'm having difficulty placing the input of user from a specified line. Say I have below output:
I would want user to input their answer immediately after the question but still the choices of answer is displayed... (3 Replies)
Discussion started by: Orbix
3 Replies
3. Shell Programming and Scripting
normally when i type:
condor_q | tail -1
command line returns:
0 jobs; 0 idle, 0 running, 0 held
I want use the number in front of 'running' in a series of equality tests to submit more jobs when my queue gets low. Someone showed me how to do it a few days ago by setting an array equal to... (4 Replies)
Discussion started by: pattywac
4 Replies
4. Shell Programming and Scripting
I have the following line to text:
ExecuteQueue Name=default ThreadCount=60
I want to write a sed or awk function that eliminates everything before "ThreadCount" without taking into account what is actually in front of ThreadCount. Meaning there may be text in front of "ThreadCount" other... (6 Replies)
Discussion started by: ArterialTool
6 Replies
5. Shell Programming and Scripting
while + and equal to zero ; then
what to punt instead of phrase and equal to zero.
it's bash
thank you in advance (1 Reply)
Discussion started by: losh
1 Replies
6. Shell Programming and Scripting
Guys,
I am trying to do below operation
LAST_TRANSACTION=2
if ]; then
# do something
fi
If the LAST_TRANSACTION variable is not equal to 1 or 2 or 3 then code inside the if block should be execute.
This code is not working, Any help is appreciated. (7 Replies)
Discussion started by: gowrishankar05
7 Replies
7. Shell Programming and Scripting
Dear All,
I have requirement like this:
I have 2 camma seperated files
file1:
1,aaa,bbb,ccc,
2,bbb,ccc,ddd,
3,ccc,ddd,eee,
file2:
1,aaa,bbb,ccc,
2,bbb,ddd,ddd,
3,ccc,ddd,eee,
my requirement is I should get message in the out put like:
There is a difference in 3 rd filed in... (2 Replies)
Discussion started by: mymoto
2 Replies
8. Shell Programming and Scripting
How do I go about amending this simple script that prompts for a yes/no response so that if neither Y or N are entered it will loop back back to the original prompt
#!/bin/ksh
echo "Enter yes of no"
read answer
if
then
echo "You selected yes"
elif
then
echo "You selected no"
elif... (5 Replies)
Discussion started by: gmears
5 Replies
9. Linux
Please help me, wasted hrs:wall:, to find this soulution:-
I need a command that will work on file (xml) and replace multiple occurrence (more than 2 times)
Examples
1. '==='
2. '===='
3. '======='
should be replaced by just '=='
Note :- single character should be replaced. (=... (13 Replies)
Discussion started by: RedRocks!!
13 Replies
sigsend(2) System Calls Manual sigsend(2)
NAME
sigsend(), sigsendset() - send a signal to a process or a group of processes
SYNOPSIS
DESCRIPTION
The system call sends a signal to a process or a group of processes. The process or group of processes to which the signal is to be sent
is specified by id and idtype. The signal to be sent is specified by sig and is either one from the list given in (see signal(2)) or 0.
If sig is equal to zero (the null signal), error checking is performed but no signal is actually sent. This can be used to check the
validity of id and idtype.
The real or effective user ID of the sending process must match the real or effective user ID of the receiving process, unless the process
has appropriate privileges, or sig is and the sending process has the same session ID as the receiving process.
idtype and id work together as follows:
o If idtype is sig will be sent to the process with a process ID equal to
o If idtype is sig will be sent to any process with a process group ID equal to
o If idtype is sig will be sent to any process with a session ID equal to
o If idtype is sig will be sent to any process with an effective user ID equal to
o If idtype is sig will be sent to any process with an effective group ID equal to
o If idtype is sig will be sent to all processes and id will be ignored.
o If id is the value of id is taken from the calling process.
The process with a process ID of is always excluded. The process with a process ID of is included only if idtype is equal to
provides an alternate interface for sending signals to a set of processes.
psp is a pointer to a structure that includes the following members:
idop p_op;
idtype_t p_lidtype;
id_t p_lid;
idtype_t p_ridtype;
id_t p_rid;
The structure defines a set of processes as the result of a set operation (difference, union, intersection, or exclusion) on two operands
(idtype/id pairs). The left (right) operand is specified by and takes the values specified by id and takes the values specified by idtype
in the system call defined above. p_op specifies the operand, and takes one of the following values:
Set difference.
The resultant set consists of the processes that are in the left operand and not in the right operand.
Set intersection.
The resultant set consists of the processes that are in both the left and right operands.
Set union. The resultant set consists of the processes that are in either the left or right operand or both.
Set exclusive The resultant set consists of the processes that are in either the left or right operand but not in both.
RETURN VALUE
Upon successful completion, returns a value of Otherwise, it returns a value of -1 and sets to indicate the error.
ERRORS
If fails, it sets errno (see errno(2)) to one of the following values:
[EINVAL] sig is neither a valid signal number nor zero.
[EINVAL] idtype is not a valid value.
[EINVAL] sig is idtype is and id is
[ESRCH] No process can be found corresponding to that specified by id and idtype.
[EPERM] The user ID of the sending process is not 0, and its real or effective user ID does not match the real or effective
user ID of the receiving process, and the calling process is not sending to a process that shares the same session
ID.
SEE ALSO
kill(2), signal(2).
sigsend(2)