04-08-2013
i invoke them by ./control.sh and passing the relevant options....and similarly for manager script also.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
plz can anybody tell me that if a script written for Bash shell also work for other shells and if yes , how ???
Thanks and Regards
SONAL (2 Replies)
Discussion started by: sonbag_pspl
2 Replies
2. UNIX for Dummies Questions & Answers
Hi,
Is anyone can help me to find out the difference in Shell Scripts between HP and Sun.
Thanks in advance,
Vijay R (3 Replies)
Discussion started by: rv_kumar
3 Replies
3. AIX
Hi,
Please give me the detailed Differences between writing Unix Shell script and AIX Shell Scripts. Thanks in advance..... (0 Replies)
Discussion started by: haroonec
0 Replies
4. AIX
Hello everyone,
I have a script thats acting funky, what I would like to do is report to a file, how long its taking to get to certain area's, in seconds. For example.
-- Start timer
-- Run unix command 1
-- Run unix command 2
-- Stop timer
-- Report Seconds
-- etc etc
Is there a way... (3 Replies)
Discussion started by: dbridle
3 Replies
5. Shell Programming and Scripting
I am trying to set some environment variables in a shell script which is written in Kshell. I am invoking this script in .profile. The problem is envirnment variables are set within the script but after exiting the script those are gone. I don't have any problem with If I have Kshell as my default... (0 Replies)
Discussion started by: roopla
0 Replies
6. Shell Programming and Scripting
Could someone tell me if there is any difference in using square brackets single or doubled pair?
So, do those two some how could be treted by shell differently:
if ; then <statements;> else <statements;> fi
and
if ] ; then <statements;> else <statements;> fi
Maybe any one could... (5 Replies)
Discussion started by: alex_5161
5 Replies
7. Solaris
Hi
I am getting some errors when i am running the shell script using the following syntax:
>abc.sh
but the same script works fine with the following syntax:
>sh abc.sh
wats the difference in both....please help
thanks in advance. (6 Replies)
Discussion started by: arpit_narula
6 Replies
8. UNIX for Dummies Questions & Answers
I have a bash shell that even though it does not look pretty is working very well. Some of the steps are repetitive, something like this:
muscle -in ${e}.4 > $e.5
read -t1
sed ':a /^>/!N;s/\n\(\)/\1/;ta' $e.5 > $e.6
read -t2
awk '/>/{fr=$3;getline;n=split ($0,a,""); for (i=1;i<=n;i++)... (2 Replies)
Discussion started by: Xterra
2 Replies
9. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Test that exactly one command line argrument is enter from the command line. If not, display the usage... (1 Reply)
Discussion started by: jcoop12
1 Replies
10. UNIX for Beginners Questions & Answers
Hello... and thanks in advance for reading this or offering me any assistance
I'm trying to understand specific differences between the various login scripts... I understand the differences between interactive vs non-interactive and login vs non-login shells... and that's not where my question... (4 Replies)
Discussion started by: bodisha
4 Replies
LEARN ABOUT CENTOS
tk_managegeometry
Tk_ManageGeometry(3) Tk Library Procedures Tk_ManageGeometry(3)
__________________________________________________________________________________________________________________________________________________
NAME
Tk_ManageGeometry - arrange to handle geometry requests for a window
SYNOPSIS
#include <tk.h>
Tk_ManageGeometry(tkwin, mgrPtr, clientData)
ARGUMENTS
Tk_Window tkwin (in) Token for window to be managed.
const Tk_GeomMgr *mgrPtr (in) Pointer to data structure containing information about the geometry manager, or NULL to indicate
that tkwin's geometry should not be managed anymore. The data structure pointed to by mgrPtr must
be static: Tk keeps a reference to it as long as the window is managed.
ClientData clientData (in) Arbitrary one-word value to pass to geometry manager callbacks.
_________________________________________________________________
DESCRIPTION
Tk_ManageGeometry arranges for a particular geometry manager, described by the mgrPtr argument, to control the geometry of a particular
slave window, given by tkwin. If tkwin was previously managed by some other geometry manager, the previous manager loses control in favor
of the new one. If mgrPtr is NULL, geometry management is cancelled for tkwin.
The structure pointed to by mgrPtr contains information about the geometry manager:
typedef struct {
const char *name;
Tk_GeomRequestProc *requestProc;
Tk_GeomLostSlaveProc *lostSlaveProc;
} Tk_GeomMgr;
The name field is the textual name for the geometry manager, such as pack or place; this value will be returned by the command winfo man-
ager.
requestProc is a procedure in the geometry manager that will be invoked whenever Tk_GeometryRequest is called by the slave to change its
desired geometry. requestProc should have arguments and results that match the type Tk_GeomRequestProc:
typedef void Tk_GeomRequestProc(
ClientData clientData,
Tk_Window tkwin);
The parameters to requestProc will be identical to the corresponding parameters passed to Tk_ManageGeometry. clientData usually points to
a data structure containing application-specific information about how to manage tkwin's geometry.
The lostSlaveProc field of mgrPtr points to another procedure in the geometry manager. Tk will invoke lostSlaveProc if some other manager
calls Tk_ManageGeometry to claim tkwin away from the current geometry manager. lostSlaveProc is not invoked if Tk_ManageGeometry is called
with a NULL value for mgrPtr (presumably the current geometry manager has made this call, so it already knows that the window is no longer
managed), nor is it called if mgrPtr is the same as the window's current geometry manager. lostSlaveProc should have arguments and results
that match the following prototype:
typedef void Tk_GeomLostSlaveProc(
ClientData clientData,
Tk_Window tkwin);
The parameters to lostSlaveProc will be identical to the corresponding parameters passed to Tk_ManageGeometry.
KEYWORDS
callback, geometry, managed, request, unmanaged
Tk 4.0 Tk_ManageGeometry(3)