Following command sends word 'test' followed by an enter into a screen session (in our case screen_1). How do I print the result, if that would result ? How do I print the result, even if the program running in the session is locked ?
Thank you
Last edited by akula_1986; 10-30-2010 at 07:51 PM..
I have the following questions regrading Unix commands.
1. Could you provide the commands how to print the content of .profile and .shrc files on the screen using more and piple command? or a better way?
2. How can i use the head and tail to display lines from 25 through 75... or a better... (4 Replies)
Good day. :)
I don't know exactly where or how to post this kind of stuff, but I though I'd like to have a look at my "Screen Saver" in progress. Comments welcome.
This uses bash. Just copy and pase into any file. Make o+x and run. Feel free to edit and change all u like.
Thanks.
... (0 Replies)
Hello sir,
Im in a Fedora 9 system.
Im using screen to invoke the session that is created by me.
Whenever we open the terminal then a session is created by the operating system. I want to know what is the name of default session in screen command.
I could not get it using "screen -ls". Can you... (3 Replies)
Im trying to make a script that prints 2 messages to a screen session, one after the other.
screen -x session44 -X stuff "`printf "Test 1\r"`"
This works fine, but adding a second lien with a different message yields no results.
Changed Subject: Please Follow Forum Rules Regarding... (1 Reply)
hi, i am on AIX 5.3. I would like to write scripts that initiate or reattach to a screen session to run some commands either from unix or Universe. Can anyone assist me with a with a wuick primer on this. I can attach or initiate a screen manually and then run the commands but I would like to... (6 Replies)
Hi,
I have this Unix script that kills a user session. When I run it, my screen goes blank. How do I prevent the blank screen?
Ex: I open 2 Unix sessions. The main PID for my 1st session is 1234. In the second session I issue a "kill -HUP 1234". The first session gets killed but the second... (5 Replies)
Hello friends,
I work on Linux servers via SSH (putty) and run "screen" to preserve my sessions so I can attach/detach them at anytime I wish without losing the connectivity/process disruption which is working perfectly fine.
As my team members also have root access to those servers, it is... (7 Replies)
Discussion started by: prvnrk
7 Replies
LEARN ABOUT CENTOS
xmprintsetup
XmPrintSetup(library call) XmPrintSetup(library call)
NAME
XmPrintSetup -- setup and create a Print Shell widget
SYNOPSIS
#include <Xm/Print.h>
Widget XmPrintSetup(
Widget video_widget,
Screen *print_screen,
String print_shell_name,
ArgList args,
Cardinal num_args);
DESCRIPTION
A function that does the appropriate setting and creates a realized XmPrintShell that it returns to the caller. This function hides the
details of the Xt to set up a valid print shell heirarchy for the application. It is also meant to encourage consistency in the way appli-
cations root their print widget hierarchy.
print_screen must belong to a Display connection that has already been initialized with Xt.
The video_widget is used to get at the application context, application name and class, and argc/argv stored on the applicationShell that
roots this widget. If no applicationShell is found, NULL argv/argc are used.
XmPrintSetup then creates an unrealized ApplicationShell with the same name and class as the one given by the video display, on the print
display and on the print screen specified.
An XmPrintShell is then created as a child of this toplevel shell, using XtCreatePopupShell, with the name print_shell_name, and using the
args provided. It then realizes and maps the print shell, using XtPopup with XtGrabNone.
This way, application resource files and users can specify print specific attributes using the following syntax (if print_shell_name is
"Print"):
Dtpad.Print*textFontList: somefont
*Print*background:white
*Print*highlightThickness:0
video_widget
A video widget to fetch app video data from.
print_screen
A print screen on the print display - specifies the screen onto which the new shell is created.
print_shell_name
Specifies the name of the XmPrintShell created on the X Print server.
args Specifies the argument list from which to get the resources for the XmPrintShell.
num_args Specifies the number of arguments in the argument list.
RETURN VALUE
The id the XmPrintShell widget created on the X Print Server connection, or NULL if an error has occured.
ERRORS /WARNINGS
None.
EXAMPLES
From the OK callback and the SetUp callback of the primary print dialog widget:
static void
printOKCB(Widget, XtPointer call_data, XtPointer client_data)
{
AppPrint *p = (AppPrint *) client_data;
DtPrintSetupCallbackStruct *pbs =
(XmPrintCallbackStruct *) call_data;
/* connect if not already done.
the print dialog callback always provides valid
printer name, print display and screen
already initialized: XpInitContext called */
*/
p->print_shell = XmPrintSetup (widget, pbs->print_screen,
"Print", NULL, 0);
...
}
SEE ALSO XmPrintShell(3), XmRedisplayWidget(3), XmPrintToFile(3), XmPrintPopupPDM(3)
XmPrintSetup(library call)