Hi all,
I've been assigned the task of modifying a script which reads in names of tables from a list file, exports a 30 days worth of data from these tables, then deletes the table. The list file will now contain a table name and a number next to it indicating how many days to archive. I need... (1 Reply)
i have an external device sending serial messages i want to connect this device to a serial port in my sun blade box and record those messages to a file, how can i read the serial port and write it to file?
Thanks (4 Replies)
Hi,
I have a file called inputs. Now that file has the values like this:
1 2 3
Now In my script called 'get.sh' I do this :
exec < inputs
read a b c d
Now I know that there will not be any value in d. How can I check it. I need the exact condition for checking whether the variable has... (1 Reply)
Hi,
I have a script that takes the contents of another file as inputs. Its assumed that there are 3 values in the input file that are seperated by '|'. I have to check in my script, whether the filed seperator used in the input file is '|' or not. If its not a '|' I have to print a error... (13 Replies)
I have couple of shell scripts.
Each shell script accepts command line argument as inputfilename.
Each shell script creates a summary file, status file.
All these files are stored in a particular directory...Eg
InputFile is to be picked from /home/ProjectName/ftp_inputfiles/
Outputs are to... (1 Reply)
I need to write what I thought would be a fairly simple 2-line UNIX script. It can be written PERL, csh, ksh...or whatever is easiest.
The entire script will be:
Begin Scipt
source MySourceFile
execute MyExecutable.exe
End Script
The problem is that MySourceFile can not be... (1 Reply)
I want a script that will prompt a user to enter 10 numbers and out put them into a file. This what I have so far, but isn't working. I'm guessing it's something easy I'm not seeing. Thanks for any help.
#!/usr/bin/ksh
echo "Enter 10 numbers"
for i in 1 2 3 4 5 6 7 8 9 10
do
read .... ... (8 Replies)
Hi,
Am trying to store the user inputs into a file, but the below code will store only the first line of the values. I need to store all the user input values which may contain one or more lines. Thanks in advance.
echo "please enter file names";
read name;
echo $name>/tmp/test (11 Replies)
Good morning ..,
I have a problem to run my object program. Before, I run my program in cygwin and there is no problem. When I tried in linux (ubuntu), the terminal said that space.exe : command not found.
this is the code in my shell
space.exe gr1
result
space.exe: command not found... (2 Replies)
Discussion started by: weslyarfan
2 Replies
LEARN ABOUT HPUX
xtcallbackexclusive
XtCallbackExclusive() XtCallbackExclusive()
Name
XtCallbackExclusive - callback function to pop up a widget.
Synopsis
void XtCallbackExclusive(w, client_data, call_data)
Widget w;
XtPointer client_data;
XtPointer call_data;
Inputs
w Specifies the widget.
client_data
Specifies the popup shell.
call_data Specifies the callback data, which is not used by this procedure.
Description
XtCallbackExclusive() calls XtPopup() on the widget passed in the client_data argument with grab_mode set to XtGrabExclusive. Then it
calls XtSetSensitive() on w to make that widget insensitive.
XtCallbackExclusive() is a convenience procedure designed to be registered on a widget's callback list (which is why it has a third, unused
argument). The widget to be popped up should be registered as client_data for the callback. The reason that this callback makes its
invoking widget insensitive is so that the user cannot request to popup the shell again while it is already up.
Usage
To popup a shell with a non-exclusive grab or with no grab at all, you can use XtCallbackNonexclusive() or XtCallbackNone(). To popdown a
shell from a callback, use XtCallbackPopdown().
Note that this function does not attempt to place the popup shell at any particular location, and for that reason may not be appropriate in
many circumstances.
It is also possible to pop up a shell with the XtMenuPopup action.
Example
To arrange for the shell pshell to be popped up when the user clicks on the button widget button, you would use code like the following:
XtAddCallback(button,XtNcallback,XtCallbackExclusive,pshell);
A companion example is presented on the XtCallbackPopdown() reference page.
See AlsoXtCallbackNone(1), XtCallbackNonexclusive(1), XtCallbackPopdown(1), XtMenuPopdown(1), XtMenuPopup(1), XtPopdown(1), XtPopup(1), XtSetSensi-
tive(1).
Xt - Pop Ups XtCallbackExclusive()