11-10-2009
What is the big deal in that ?
Call the commands, one by one !
-- What help you are looking for ?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
Language like C,Java can interact with database..and can use database information .. can a shall script do this?
if yes thn plz guide me.....
thankx (7 Replies)
Discussion started by: johnray31
7 Replies
2. Shell Programming and Scripting
Hi ,
I am new to linux and also also to shell scripting.
I have one shell script which unpacks .tgz file and install software on machine.
When this script runs I want to insert id,filename,description(which will be in readme file),log(which will be in log file) and name of unpacked folder... (1 Reply)
Discussion started by: ring
1 Replies
3. Shell Programming and Scripting
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (2 Replies)
Discussion started by: alokjyotibal
2 Replies
4. Shell Programming and Scripting
Input for the program is a text file consisting of n no. of items.
I want search each item in a database and the existing parts should go to FOUND folder and the others should go to NOTFOUND folder.
Pls help me in this.
Thank u. (1 Reply)
Discussion started by: smarty86
1 Replies
5. Shell Programming and Scripting
Hi
when i am calling the shell script with two parameter like id and date it works fine.But the same shell script is call by java application it gives the error as shown below
Thu Jan 8 04:13:22 EST 2009|The Get Segment Process Failed: SP2-0306:
Invalid option.
Usage: CONN where <logon>... (1 Reply)
Discussion started by: ravi214u
1 Replies
6. Shell Programming and Scripting
hi,
I have a script that will logon to a database siebel and do the select query and then get the result in command prompt of unix.Below the script.
#!/bin/ksh
. $HOME/conf/systemProperties/EnvSetup.properties
#set -x
while read i
do
echo $i
connect1=`sqlplus -silent... (1 Reply)
Discussion started by: ali560045
1 Replies
7. Shell Programming and Scripting
Hi all,
I am satyakiran , i am new to the forum. i never done shell scripts for connecting to the data base (oracle) and fetching the data from the database( thru sql select statements ) i want to know
1. how to connect to the data base(oracle) using shell script
2. how to retrieve data... (8 Replies)
Discussion started by: satyakiran
8 Replies
8. Shell Programming and Scripting
Hi all,
This is my first ever post to any forum so, dont let this go in vain...........:)
Here is the scenario........
I have logged into the unix where oracle_sid is initialized for some X database in the .profile.
I have a unix script where some sql query which fetches data from X... (3 Replies)
Discussion started by: sachinkl
3 Replies
9. Shell Programming and Scripting
Hi Unix Gurus,
I have a requirement to write a script, Oracle DB gets referesh every 6hrs, hence we need write a script to connect to the database , if it connects it should generate a file to proceed the next job application or when an error when connectiong to DB it should not generate any... (8 Replies)
Discussion started by: bshivali
8 Replies
10. Shell Programming and Scripting
Hi All,
I am newbie to unix shell scripting. I want to connect to oracle database using shell script. I know how to connect DB using user name and password but my question is if my password is having '@' sign then how to connect.
I have tried like below,
cnt=`sqlplus -s /nolog << EOFSQL
... (3 Replies)
Discussion started by: pmotewar
3 Replies
destroy() destroy()
Name
destroy - Object class method called when a widget is destroyed.
Synopsis
typedef void (*XtWidgetProc)(Widget);
Widget w;
Inputs
w Specifies the widget that is being destroyed.
Description
The destroy() method is registered on the destroy field of the Object, RectObj, or Core class part structures. It is invoked by XtDestroy-
Widget() as part of the destruction process when any widget or object is destroyed, and should deallocate any memory or resources associ-
ated with the part of the widget instance structure specific to this class. It does not free the widget instance structure itself.
The destroy() methods of a widget class and all its superclasses are called in subclass-to-superclass order. (Note that this is the
reverse of the usual superclass-to-subclass chaining sequence.) The destroy() method of a widget class should deallocate memory or other
resources that were explicitly allocated by this class. Any resource that was obtained from the resource database or passed in an argument
list was not created by the widget and therefore should not be destroyed by it (unless the widget allocated memory to copy the resource
value, in which case the memory must be freed).
To reclaim memory, at least the following deallocations should be performed:
o Call XtFree() on dynamic storage allocated with XtCalloc(), XtMalloc(), etc.
o Call XFreePixmap() on pixmaps created with direct Xlib calls.
o Call XtReleaseGC() on GCs allocated with XtGetGC().
o Call XFreeGC() on GCs allocated with direct Xlib calls.
o Call XtRemoveEventHandler() on event handlers added with XtAddEventHandler().
o Call XtRemoveTimeOut() on timers created with XtAppAddTimeOut().
o Call XtDestroyWidget() for each child if the widget has children and is not a subclass of compositeWidgetClass.
The destroy() method is chained, so it cannot be inherited. If a widget does not need to deallocate any storage, the destroy field in its
widget class record should be NULL.
See XtDestroyWidget(1) for details on the process of widget destruction.
Usage
In general, a destroy() method will deallocate any resources allocated in the initialize() and set_values() methods. This often includes
GCs, pixmaps, and any copies that were made of string resources.
Example
The following procedure is the destroy() method of the Xaw Label widget. It frees the copy it made of its label string resource, deallo-
cates two shared GCs, and frees the stipple pixmap it used to draw itself in insensitive mode.
static void Destroy(w)
Widget w;
{
LabelWidget lw = (LabelWidget)w;
XtFree( lw->label.label );
XtReleaseGC( w, lw->label.normal_GC );
XtReleaseGC( w, lw->label.gray_GC);
XmuReleaseStippledPixmap( XtScreen(w), lw->label.stipple );
}
See Also
XtDestroyWidget(1),
Core(3),
Constraint destroy(4), initialize(4), set_values(4).
Xt - Intrinsics Methods destroy()