06-28-2017
If /proc/<pid>/ is unreadable then it's a kernel thing.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I wasn't sure if I should post it here of in the Shell Script category, but I figured it was definitely a newbie question.
I'm trying to write a script that will check for the existence of a specific file (or for any files within the directory) and then take specific actions. I've removed all... (2 Replies)
Discussion started by: bd_joy
2 Replies
2. Shell Programming and Scripting
Hey all,
I have total new with shell scripting so I don't know if what I need to do even possible, here it is...for a duration of time (say...1 hour) I need to check for the existence of a particular file, if it exists then I will invoke a java program or I will continue to check until a)... (2 Replies)
Discussion started by: mpang_
2 Replies
3. UNIX for Dummies Questions & Answers
Hello,
I have this process app.fcgi and a directory containing images. I'd like to ensure that only app.cgi can access those images and more generally that folder.Thanks! (1 Reply)
Discussion started by: JCR
1 Replies
4. Shell Programming and Scripting
Hi
I want to check a particular file is available or not. But i know only the pattern of that file sat AB1234*.txt.I need the latest file name and it ll be used in the script. How can i do this using ls -ltr command.
Thanks,
LathishSundar V (2 Replies)
Discussion started by: lathish
2 Replies
5. Shell Programming and Scripting
Hi
How can I check if the path exist or not?
echo "Enter path:";
read my_path;
##I should check whether my_path exists or not.... (5 Replies)
Discussion started by: tjay83
5 Replies
6. Shell Programming and Scripting
Hi Folks,
Please tell me the unix shell script command to check for the existence of some .done file in a location on the UNIX server. (1 Reply)
Discussion started by: dinesh1985
1 Replies
7. Shell Programming and Scripting
Hi,
I want to make a bash script which is running like :
1.sh http://www. google.com
and check if the url does exist printing a message.
I want to save the source code of this page in a file.
Could you help me ? (4 Replies)
Discussion started by: peter20
4 Replies
8. Shell Programming and Scripting
Hi
I'm using the below command in shell script to check for file exists in the path
if
.....
fi
path and test are variables
path and the file exists but the commands inside if condition is executed (! operator used)
Is the above way of checking for file existence is correct?
... (4 Replies)
Discussion started by: vinoth_kumar
4 Replies
9. Shell Programming and Scripting
Hope someone can help me on this
In a directory ,files are dynamically generated.I need a script to do the following
if files are not received for more than 2 hours or if the received file is empty
then do something
How can I put that in a script.Thank you
eg. in cd /dir_name the... (13 Replies)
Discussion started by: haadiya
13 Replies
10. UNIX for Advanced & Expert Users
I'm on AIX. I have triggered an infinite loop process (to keep looking for input file availability for further process). At present only I can kill the process.
In case my colleague wants to kill the process for any reason, how do I provide permission to others to kill the process?
Currently... (3 Replies)
Discussion started by: krishmaths
3 Replies
LEARN ABOUT SUSE
tk_createeventhandler
Tk_CreateEventHandler(3) Tk Library Procedures Tk_CreateEventHandler(3)
__________________________________________________________________________________________________________________________________________________
NAME
Tk_CreateEventHandler, Tk_DeleteEventHandler - associate procedure callback with an X event
SYNOPSIS
#include <tk.h>
Tk_CreateEventHandler(tkwin, mask, proc, clientData)
Tk_DeleteEventHandler(tkwin, mask, proc, clientData)
ARGUMENTS
Tk_Window tkwin (in) Token for window in which events may occur.
unsigned long mask (in) Bit-mask of events (such as ButtonPressMask) for which proc should be called.
Tk_EventProc *proc (in) Procedure to invoke whenever an event in mask occurs in the window given by tkwin.
ClientData clientData (in) Arbitrary one-word value to pass to proc.
_________________________________________________________________
DESCRIPTION
Tk_CreateEventHandler arranges for proc to be invoked in the future whenever one of the event types specified by mask occurs in the window
specified by tkwin. The callback to proc will be made by Tk_HandleEvent; this mechanism only works in programs that dispatch events
through Tk_HandleEvent (or through other Tk procedures that call Tk_HandleEvent, such as Tk_DoOneEvent or Tk_MainLoop).
Proc should have arguments and result that match the type Tk_EventProc:
typedef void Tk_EventProc(
ClientData clientData,
XEvent *eventPtr);
The clientData parameter to proc is a copy of the clientData argument given to Tk_CreateEventHandler when the callback was created. Typi-
cally, clientData points to a data structure containing application-specific information about the window in which the event occurred.
EventPtr is a pointer to the X event, which will be one of the ones specified in the mask argument to Tk_CreateEventHandler.
Tk_DeleteEventHandler may be called to delete a previously-created event handler: it deletes the first handler it finds that is associated
with tkwin and matches the mask, proc, and clientData arguments. If no such handler exists, then Tk_HandleEvent returns without doing any-
thing. Although Tk supports it, it's probably a bad idea to have more than one callback with the same mask, proc, and clientData argu-
ments. When a window is deleted all of its handlers will be deleted automatically; in this case there is no need to call Tk_DeleteEven-
tHandler.
If multiple handlers are declared for the same type of X event on the same window, then the handlers will be invoked in the order they were
created.
KEYWORDS
bind, callback, event, handler
Tk Tk_CreateEventHandler(3)