Sponsored Content
Top Forums UNIX for Beginners Questions & Answers How auto type"OK" to purple window? Post 303017342 by Corona688 on Monday 14th of May 2018 12:56:21 PM
Old 05-14-2018
The expect utility may be required to force something interactive to be less interactive.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

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. Shell Programming and Scripting

Creating a Shortcut (to just type "l" but it runs "ls -lah")

How do I create shortcuts? For example: I just want to type one key "l" and have it output the command of "ls -lah" I believe it's creating a file called l with 755 permissions but I'm not sure where to put the file. *if it matters, I'm on a shared hosting web server using cPanel with... (2 Replies)
Discussion started by: ijustsawmars
2 Replies

3. Red Hat

Unable to type anything on "cu" serial terminal window

Hi, I'm using CentOS 5.5. I connected serial terminal using "cu". The command I had given was "cu -l /dev/ttyUSB0 -s 115200". It connects I'm seeing the target boards boot-up messages and log in screen. But I couldn't type anything on "cu" terminal window. Any help is highly appreciated. ... (1 Reply)
Discussion started by: suryaemlinux
1 Replies

4. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

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. Web Development

Attaching " Thank You " pop-up window in php form mail code

Dear Sir, I have got a php mail form code. Using this code, I want to use the JavaScript for " Thank You " pop-up window in the php form mail code. Where do I add the pop-up JavaScript for "thank you" ? My code is as follows: <?php //--------------------------Set these... (1 Reply)
Discussion started by: swapan
1 Replies

6. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

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

7. OS X (Apple)

Copy files between partitions with "without auto-mount" option enabled - possible?

Hello, fellow Unixers and Macers, I'll run several OS X versions each on its own dedicated partition. Partitions won't be seeing each other (by editing fstab). Question: will I be able to copy files between those partitions? Partition #1: Mavericks. Partition #2: HighSierra (2 Replies)
Discussion started by: scrutinizerix
2 Replies

8. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

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

9. UNIX for Beginners Questions & Answers

Howto auto boot SPARC | How to auto supply "start /SYS" and "start /SP/console" commands

When I power ON my T4-1, I got a prompt -> where I have to start /SYS and start /SP/console. How can I auto supply these two commands ? (3 Replies)
Discussion started by: z_haseeb
3 Replies
XCreateSimpleWindow()													     XCreateSimpleWindow()

Name
  XCreateSimpleWindow - create an unmapped InputOutput window.

Synopsis
  Window XCreateSimpleWindow(display, parent, x, y, width, height, border_width, border, background)
	Display *display;
	Window parent;
	int x, y;
	unsigned int width, height, border_width;
	unsigned long border;
	unsigned long background;

Arguments
  display  Specifies a pointer to the Display structure; returned from XOpenDisplay().

  parent   Specifies the parent window ID.  Must be an InputOutput window.

  x	   Specify  the  x  and y coordinates of the upper-left pixel of the new window's border relative to the origin of the parent (inside
  y	   the parent window's border).

  width    Specify the width and height, in pixels, of the new window.	These are the inside dimensions, not including the new window's  bor-
  height   ders,  which are entirely outside of the window.  Must be non-zero.	Any part of the window that extends outside its parent window
	   is clipped.

  border_width
	   Specifies the width, in pixels, of the new window's border.

  border   Specifies the pixel value for the border of the window.

  background
	   Specifies the pixel value for the background of the window.

Returns
  The window.

Description
  XCreateSimpleWindow() creates an unmapped InputOutput subwindow of the specified parent window.  Use XCreateWindow() if you want to set the
  window attributes while creating a window.  (After creation, XChangeWindowAttributes() can be used.)

  XCreateSimpleWindow()  returns  the  ID  of the created window.  The new window is placed on top of the stacking order relative to its sib-
  lings. Note that the window is unmapped when it is created - use MapWindow to display it.  This function generates a CreateNotify event.

  The initial conditions of the window are as follows:

  o  The window inherits its depth, class, and visual from its parent.	All other window attributes have their default values.

  o  All properties have undefined values.

  o  The new window will not have a cursor defined; the cursor will be that of the window's parent until the cursor  attribute	is  set  with
     XDefineCursor() or XChangeWindowAttributes().

  o  If no background or border is specified, CopyFromParent is implied.

  For more information, see Volume One, Chapter 2, X Concepts, and Volume One, Chapter 3, Basic Window Program.

Errors
  BadAlloc

  BadMatch

  BadValue  width or height is zero.

  BadWindow Specified parent is an InputOnly window.

See Also
  XCreateWindow(), XDestroySubwindows(), XDestroyWindow().

Xlib - Window Existence 												     XCreateSimpleWindow()
All times are GMT -4. The time now is 08:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy