10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all..
so i have a problem i need to solve ..
#! /bin/bash
$SHELL
dtterm -title my_prog -e su -user -c 'export DISPLAY=:0.0 ; /path/to/my/prog' & 2> /dev/null
$SHELL
intr
exit
This script will work on solaris 10 system in right clikt menu - in a secure system so i need to... (0 Replies)
Discussion started by: defs
0 Replies
2. AIX
Hello All,
I am trying to call a function from the calling main program from a dlopened library function, below is the entire code, when I execute it it crashes with sigill. Can you guys help me out I guess I am missing out on the linker flag or something here. besides I am new to AIX and... (1 Reply)
Discussion started by: syedtoah
1 Replies
3. Shell Programming and Scripting
Hey , guys I am new to shell programing ,, so need a help from you guys ...
I have to write a shell script that accepts file name or directory name from the user if it is a directory then throw an error if it is a file then give the user two options .
1.overwrite the content
2.append the... (2 Replies)
Discussion started by: coolashu
2 Replies
4. AIX
I have two shared libraries, A, B(B depents on A, both linked with -G option which means they're rtl enable), B's toc size is bigger than 64K(-bbigtoc), while A's toc size smaller than 64K.
Then I write a "Hello, world" example E, and link with A and B.
Link cmd 1:
xlC128_r -o E E.o -lA -lB... (0 Replies)
Discussion started by: jackliang
0 Replies
5. Shell Programming and Scripting
I am trying to understand a program in a book and this program suppose to call other programs which are in the same folder, the other programs are called 'lu' and 'add' but for some reason when it gets to the last line of each case to call these programs there is an error message saying
./rolo:... (2 Replies)
Discussion started by: bartsimpsong
2 Replies
6. Programming
Is anyone know how to write a class in separate file? While method does it needs to be contained in a printwriter class? Can I have the format of the printwriter class as a reference? Thanks a lot. (1 Reply)
Discussion started by: eel
1 Replies
7. Programming
Hi,
I have 2 problems with a simple C++ app which i feel may be related.
1/ my app throws a Segmentaion Fault when my code exists from main(). I have stripped it to it's simplest form with no code in main and it still generates a segmentation fault.
I'm not sure what is causing this,... (9 Replies)
Discussion started by: SonOfPerdition
9 Replies
8. Programming
main()
{
pid_t child;
child=fork();
if(child > 0)
{sleep(60);
}
else
{exit(0);
}
}
the above code will create zombie process,which will be adopted by init as soon as parent process will dies.Can any one gimme a code or an alogrithm to keep this zombie proocess alive even after... (6 Replies)
Discussion started by: anilchowdhury
6 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I want a command in unix shell script which will exit my whole program, not only from the function it's using. For e.g:
$1 == "m_who" && $4 == "Extrnl Vendor" {
print "You don have access"
exit (0);
}
If this error is showing on the screen, then nothing should not... (9 Replies)
Discussion started by: ronix007
9 Replies
10. UNIX for Dummies Questions & Answers
I'm receiving an exit code 64 in our batch scheduler (BMC product control-m) executing a PERL script on UX-HP. Can you tell me where I can find a list of exit codes and their meaning. I'm assuming the exit code is from the Unix operating system not PERL. (3 Replies)
Discussion started by: jkuchar747
3 Replies
Manipulator(3U) InterViews Reference Manual Manipulator(3U)
NAME
Manipulator - base class for defining direct-manipulation semantics
SYNOPSIS
#include <Unidraw/manip.h>
DESCRIPTION
Tools use manipulator objects to encapsulate the mechanics of direct manipulation. Manipulators turn user input events into an animation
sequence that characterize the manipulation. Manipulators abstract the manipulation into three phases: the grasping phase, which occurs at
the start of the manipulation and lets the manipulator initialize state it will need in later phases; the manipulating phase, during which
the manipulator accepts input events and generates graphical output that characterizes successive frames of the animation; and finally the
effect phase, which occurs at the end of the manipulation and lets the manipulator finalize its state. Manipulator is an abstract base
class. Subclasses support different manipulation semantics.
MANIPULATOR PUBLIC OPERATIONS
virtual void Grasp(Event&)
Grasp is called once at the beginning of direct manipulation to allow the manipulator to initialize its internal state based on the
initiating event.
virtual boolean Manipulating(Event&)
Manipulating is called repeatedly during the manipulation whenever a new event arrives, until it returns false. Each call to Manip-
ulating should produce a new frame of the animation that characterizes the manipulation.
virtual void Effect(Event&)
Effect is called once at the end of direct manipulation to allow the manipulator to finalize its internal state based on the last
event supplied to the Manipulating operation.
virtual void SetViewer(Viewer*)
virtual Viewer* GetViewer()
virtual void SetTool(Tool*)
virtual Tool* GetTool()
Get and set the viewer, in which the manipulator generates graphical output, and the tool that created the manipulator. These oper-
ations do nothing by default; subclasses that require this information must redefine these operations to assign and retrieve the
state they require.
MANIPULATOR PROTECTED OPERATIONS
Manipulator()
The constructor is protected to disallow instantiation of abstract base class objects.
SEE ALSO
Event(3I), Tool(3U), Viewer(3U)
Unidraw 1 August 1990 Manipulator(3U)