02-27-2008
hey hi
can any one help me in writing ful script
like opening a file to the procedure i mention above
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I need of a simple shell script to launch a perl script.
The complet path of the script is:
/export/home/x2693/project/v02/appliancemanagement.pl (2 Replies)
Discussion started by: Minguccio75
2 Replies
2. Shell Programming and Scripting
Hi All
I have requirement to write a shell script which would look for the userid which is logged in , and once the User id is found i would delete certain
lines from a parameter file ..
here is what iam using
a=ps -o user | grep -v user | uniq
then using an if condition and... (4 Replies)
Discussion started by: raghav1982
4 Replies
3. Shell Programming and Scripting
Hi,
I am new to unix and using linux 7.2. I would like to create a script that would make it easyer for me to run my java programms. At the moment I have to type java myJavaprogram
I am trying to write a script that will allow me to type something like this "myscript myJavaprogram" or maybe... (4 Replies)
Discussion started by: cmitulescu
4 Replies
4. Shell Programming and Scripting
Hello Friends,
I am writing a shell script which will grab a file if it exists and copies it to another folder and will append with current date. I have written but gives me error, plz help:
--------------------------------------------
#!/usr/bin/sh
source=/home/dev4rice/naveen/test1... (4 Replies)
Discussion started by: ganesh123
4 Replies
5. Shell Programming and Scripting
Hello forum members,
I have to redirect a output of command into a text file inside a script file but iam getting an errors.so please see below script and suggest me for corrections.
#!/bin/ksh
read IP_ADD
echo nslookup $IP_ADD 2>&1| tee log1.txt
cat /amex/gcst/siva/Testr/log1.txt... (6 Replies)
Discussion started by: rajkumar_g
6 Replies
6. Shell Programming and Scripting
Write a shell that receives as parameters two folder names. Copies the
second folder as subfolder into the first one. Only folders and files
with the '.txt' extension will be copied. Detect and avoid recursive copy.
This is what I have to do and I don't know where to start. In fact, I started... (5 Replies)
Discussion started by: sharpsh07er
5 Replies
7. Shell Programming and Scripting
Hi ,
I am in need of simple shell script that has one input file containing some words
Input file 1 :
****ALEX***JOHN*******VIRGIL*****
CHRITINE*****FAISAL*****DON*****
****ALEX***JOHN*******VIRGIL*****
CHRITINE*****FAISAL*****DON*****
****ALEX***JOHN*******VIRGIL*****... (6 Replies)
Discussion started by: kmanjuna
6 Replies
8. Shell Programming and Scripting
Write a shell script which adds up 10 numbers entered by the user and displays the
result to the screen. You must use the read command to obtain the numbers from
the user.
Im a nooby noob (2 Replies)
Discussion started by: LinuxNubBrah
2 Replies
9. Shell Programming and Scripting
Hello, I am creating a shell script and I am almost done. I have certain things I want done in the shell but don't know how to finish it properly.
Here is what I am aiming to do. I am aiming to have a shell that takes at least 3 parameters. The first two are the two words to replace (the... (3 Replies)
Discussion started by: ShellsNewb
3 Replies
10. Shell Programming and Scripting
Hello,
I need to create one very simple shell script that checks if the first character of the file ./pump.txt is 0 and in that case gives a message.
If the first character is instead 1, it does give a different message.
I have written:
irr= head -c 1 ./pump.txt
if ]; then
echo... (4 Replies)
Discussion started by: dcaccount
4 Replies
LEARN ABOUT REDHAT
xprocessinternalconnection
XAddConnectionWatch(3X11) XLIB FUNCTIONS XAddConnectionWatch(3X11)
NAME
XAddConnectionWatch, XRemoveConnectionWatch, XProcessInternalConnection, XInternalConnectionNumbers - handle Xlib internal connections
SYNTAX
typedef void (*XConnectionWatchProc)(display, client_data, fd, opening, watch_data)
Display *display;
XPointer client_data;
int fd;
Bool opening;
XPointer *watch_data;
Status XAddConnectionWatch(display, procedure, client_data)
Display *display;
XWatchProc procedure;
XPointer client_data;
Status XRemoveConnectionWatch(display, procedure, client_data)
Display *display;
XWatchProc procedure;
XPointer client_data;
void XProcessInternalConnection(display, fd)
Display *display;
int fd;
Status XInternalConnectionNumbers(display, fd_return, count_return)
Display *display;
int **fd_return;
int *count_return;
ARGUMENTS
client_data
Specifies the additional client data.
count_return
Returns the number of file descriptors.
display Specifies the connection to the X server.
fd Specifies the file descriptor.
fd_return Returns the file descriptors.
procedure Specifies the procedure to be called.
DESCRIPTION
The XAddConnectionWatch function registers a procedure to be called each time Xlib opens or closes an internal connection for the specified
display. The procedure is passed the display, the specified client_data, the file descriptor for the connection, a Boolean indicating
whether the connection is being opened or closed, and a pointer to a location for private watch data. If opening is True, the procedure
can store a pointer to private data in the location pointed to by watch_data; when the procedure is later called for this same connection
and opening is False, the location pointed to by watch_data will hold this same private data pointer.
This function can be called at any time after a display is opened. If internal connections already exist, the registered procedure will
immediately be called for each of them, before XAddConnectionWatch returns. XAddConnectionWatch returns a nonzero status if the procedure
is successfully registered; otherwise, it returns zero.
The registered procedure should not call any Xlib functions. If the procedure directly or indirectly causes the state of internal connec-
tions or watch procedures to change, the result is not defined. If Xlib has been initialized for threads, the procedure is called with the
display locked and the result of a call by the procedure to any Xlib function that locks the display is not defined unless the executing
thread has externally locked the display using XLockDisplay.
The XRemoveConnectionWatch function removes a previously registered connection watch procedure. The client_data must match the client_data
used when the procedure was initially registered.
The XProcessInternalConnection function processes input available on an internal connection. This function should be called for an inter-
nal connection only after an operating system facility (for example, select or poll) has indicated that input is available; otherwise, the
effect is not defined.
The XInternalConnectionNumbers function returns a list of the file descriptors for all internal connections currently open for the speci-
fied display. When the allocated list is no longer needed, free it by using XFree. This functions returns a nonzero status if the list is
successfully allocated; otherwise, it returns zero.
SEE ALSO
Xlib - C Language X Interface
X Version 11 Release 6.6 XAddConnectionWatch(3X11)