8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I'm an amateur and need your help in figuring this out. I have been asked to connect to a prod db from non-prod env., and download a table from prod db to non-prod env.
I was able to connect to the prod db and then run a simple query as below.
@@@@@@@@@@
... (7 Replies)
Discussion started by: arunpvp
7 Replies
2. Shell Programming and Scripting
Hello this is my first post in this forum , I dont want to be unhappy..
I am writing one script but facing difficulty to find the latest file with some new pattern
My requirement is
1. The file is coming like "ABCD-23220140303" at FTP server once in a week.
2. script will run on daily... (3 Replies)
Discussion started by: ajju
3 Replies
3. Shell Programming and Scripting
Need to sort a portion of a file in a Alphabetical Order.
Example : The user adam is not sorted and the user should get sorted. I don't want the complete file to get sorted.
Currently All_users.txt contains the following lines.
##############
# ARS USERS
##############
mike, Mike... (6 Replies)
Discussion started by: evrurs
6 Replies
4. UNIX for Dummies Questions & Answers
Hello Experts,
I have the following questions to be discussed here at this esteemed discussion forum.
I have two Excel sheets which contain Unix Commands llike creating directory the structure/ftp/Copy/Zip etc to basically create an environment. I need help in understanding some of... (1 Reply)
Discussion started by: faizsaadq
1 Replies
5. Shell Programming and Scripting
Hi Friends,
I don't have much experience in shell scripting & have a urgent scripting job to complete. Need your help to do the following.
I have a input file like below:
CDR #1
----------
Name James
Age 30
Country Japan
CDR #2
----------
Name Robin
Age 31
Country Germany
... (18 Replies)
Discussion started by: SunilB2011
18 Replies
6. Ubuntu
I am using ubuntu 10.04 LTS
I tried to download the file using wget , the file size is 105.00 MB, but wget downloads only around 44K.
may be I am using wget in wrong way, any suggestions please?
Below is the command I used and the response from system.
wget --tries=10 -nd -nH --use=user... (10 Replies)
Discussion started by: LinuxLearner
10 Replies
7. Shell Programming and Scripting
please give the difference between AIX shell scripting and Unix shell scripting. (2 Replies)
Discussion started by: haroonec
2 Replies
8. UNIX for Dummies Questions & Answers
Hello people,
Can anyone tell me if the download from sun.com solaris 8 is the full unix operating system??
strange question i know but ive just downloaded the whole thing 2.5G and counldnt think as to why they would let people download it for free.:confused: (2 Replies)
Discussion started by: jeffersno1
2 Replies
XmPrintPopupPDM(library call) XmPrintPopupPDM(library call)
NAME
XmPrintPopupPDM -- Send a notification for the PDM to be popped up
SYNOPSIS
#include <Xm/Print.h>
XtEnum XmPrintPopupPDM(
Widgetprint_shell,
Widgetvideo_transient_for);
DESCRIPTION
A convenience function that sends a notification to start a Print Dialog Manager on behalf of the application, XmPrintPopupPDM hides the
details of the X selection mechanism used to notify the PDM that a new dialog must be popped up for this application.
XmPrintPopupPDM sends a selection request to either the print display of the print shell, or the video display of the transient_for video
widget (depending on the environment variable XPDMDISPLAY, which can only takes the value "print" or "video"), asking for the PDM windows
to be popped up on behalf of the app.
Return right away with status of XmPDM_NOTIFY_FAIL (e.g. if the function couldn't malloc memory for the selection value, or if XPDMDISPLAY
is not "print" or "video") or with XmPDM_NOTIFY_SUCCESS , which only means a "message" was sent out to the PDM specified by XPDMSELECTION ,
not that it's already up on the screen yet.
In order to know if the PDM is up, or not running, the application must register a XmNpdmNotificationCallback with the Print Shell.
XmPrintPopupPDM puts up an InputOnly window on top of the dialog, so that the end user doesn't use the print setup dialog while the PDM is
trying to come up. This window is automatically removed when the shell is about to call the callback for the first time.
print_shell
The Print Shell used for this print job and context.
video_transient_for
The video widget dealing with application print setup.
RETURN VALUE
Returns XmPDM_NOTIFY_SUCCESS if the function was able to send the notification out to the PDM process, XmPDM_NOTIFY_FAIL otherwise.
ERRORS
/WARNINGS
Not applicable.
EXAMPLES
Example of callback from a Print set up dialog box "Setup..." button:
PrintSetupCallback(print_dialog...)
/*-------------*/
{
if (XmPrintPopupPDM (pshell, XtParent(print_dialog)) !=
XmPDM_NOTIFY_SUCCESS) {
/* some error dialog */
}
}
Example of XmNpdmNotificationCallback from a Print Shell:
pdmNotifyCB(print_shell...)
{
XmPrintShellCallBackStruct * pr_cb = ...
switch (pr_cb->reason) {
case XmCR_PDM_NONE:
/* no PDM available */
PostErrorDialog(...);
break;
case XmCR_PDM_VXAUTH:
/* PDM is not authorized ... */
PostErrorDialog(...);
break;
case XmCR_PDM_UP: the PDM is up and running
/* everything is fine */
break;
default: /* other cases */
}
}
SEE ALSO
XmPrintSetup(3), XmPrintShell(3), XmRedisplayWidget(3), XmPrintToFile(3)
XmPrintPopupPDM(library call)