12-28-2013
i think using timer control and timer_tick event would be better. Google it.
This User Gave Thanks to kg_gaurav For This Post:
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
2. Solaris
At times I have unknown applications that hang for long periods of time over and over again after a network glitch. These are sometimes nfs4 but usually nfs3 clients and are always solaris10 systems.
nfs: NFS server hostname not responding still trying
nfs: NFS server hostname ok
nfs: NFS... (1 Reply)
Discussion started by: HPAVC
1 Replies
3. UNIX for Dummies Questions & Answers
Hi.
I have a copy-file script (and a move-file script) that I recently tried to make interactive. I tested the former on three files from a text list, and watched to see what would happen. As the cp command was in a while/do/done loop, there was no pause for input: it wrote the file from the... (2 Replies)
Discussion started by: SilversleevesX
2 Replies
4. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
5. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
6. Shell Programming and Scripting
Hi,
I'm new here, and hope that someone can help explain how a script that I'm working with works?
The code looks like this:
#!/bin/bash
export PATH=$PATH:.:/usr/sbin:/sbin
function validate_xxx()
{
echo "validating xxx parameters"
if ; then
.
. (7 Replies)
Discussion started by: ohaya
7 Replies
7. Shell Programming and Scripting
Hi everybody,
I am new at Unix/Bourne shell scripting and with my youngest experiences, I will not become very old with it :o
My code:
#!/bin/sh
set -e
set -u
export IFS=
optl="Optl"
LOCSTORCLI="/opt/lsi/storcli/storcli"
($LOCSTORCLI /c0 /vall show | grep RAID | cut -d " "... (5 Replies)
Discussion started by: Subsonic66
5 Replies
8. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT HPUX
xtapppeekevent
XtAppPeekEvent() XtAppPeekEvent()
Name
XtAppPeekEvent - return, but do not remove the event at the head of an application's input queue; block if no events are available.
Synopsis
Boolean XtAppPeekEvent(app_context, event_return)
XtAppContext app_context;
XEvent *event_return;
Inputs
app_context
Specifies the application context.
Outputs
event_return
Returns the event from the head of the queue, if that event is an X event.
Returns
True if the event at the head of the queue is an X event; False if it is a timer event or an alternate input source event.
Description
If there are X events pending on any of the displays in app_context, XtAppPeekEvent() copies the event from the head of the application
event queue into event_return (without removing the event from the queue) and returns True. If there are no events, it flushes the output
buffers of each display and checks again. If there are still no pending X events on any of the displays, but there are timer or alternate
input events ready, XtAppPeekEvent() returns False.
If there are no events of any kind, XtAppPeekEvent() blocks until one occurs, and then if it is an X event, copies the event (without
removing it from the queue) and returns True or returns False otherwise. Note that XtAppPeekEvent() never calls background work procedures
registered with XtAppAddWorkProc() .
Usage
Programs rarely need this much control over the event dispatching mechanism. Most programs use XtAppMainLoop().
If you want to get X events and remove them from the input queue, consider XtAppNextEvent(). This function also dispatches timer and
alternate input events.
If you want to check for input events without blocking, use XtAppPending(). This function returns a value that indicates which types of
events are pending for an application context, or 0 if no events are pending.
See Also
XtAppMainLoop(1), XtAppNextEvent(1), XtAppPending(1).
Xt - Event Handling XtAppPeekEvent()