Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Display output of one xterm on another Post 302211741 by cero on Friday 4th of July 2008 07:00:09 AM
Old 07-04-2008
one way (most probably not the best) that comes to my mind would be (using ksh)
Code:
export DISPLAY=your.ip
touch /path/to/file
xterm -e tail -f /path/to/file &
tail -f /path/to/file

That session sends you the xterm and shows what the other one sees.
Then have another session doing the input part, redirecting the output:
Code:
ksh 1>>/path/to/file
your/queries/here

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

xterm and display

I go to a different terminal ctrl-alt f2 i want to be able to open up another xterm there. How do i do it? Specificly, I want to be able to log into another computer in term f2. I then want to open a gui term and then execute programs on one computer but have them display on mine? I... (1 Reply)
Discussion started by: macdonto
1 Replies

2. Shell Programming and Scripting

output display alignment !!

Hi I'm trying to display the output of my script in a friendly viewable format. it's something like this.. i have this while loop... in which i get some records from a file where fields are delimitered with a pipe. so i'm extacting each field and replacing the pipe with a \t, tab !!.. cat... (7 Replies)
Discussion started by: rosh0623
7 Replies

3. Shell Programming and Scripting

display and output...question

Hi, I have a small question about the value cannot display correctly: MSG=log fruit=apple print "No $fruit in the store" > "$MSG/fruit_message.txt" output: No $fruit in the store should be: No apple in the store AND $MSG/fruit_message.txt ----------> cannot find the... (5 Replies)
Discussion started by: happyv
5 Replies

4. UNIX for Dummies Questions & Answers

Display multiple output lines

All, I have a file ABC.TXT which has two records: 12345 19.93 34.94 12345 94.84 10.48 If do the following command and grep '12345' ABC.TXT >> test1.txt If I look at the output of test1.txt I appears as follows: 12345 19.93 34.94 12345 94.84 10.48 I... (5 Replies)
Discussion started by: kingofprussia
5 Replies

5. UNIX for Dummies Questions & Answers

xterm -display

I am using this command but when I launch it, the font that comes up on the remote machine is very small. Is there a way to enlarge the font using some switch? xterm -display remotemachine:0.0 & (5 Replies)
Discussion started by: zapper222
5 Replies

6. UNIX for Dummies Questions & Answers

Command display output on console and simultaneously save the command and its output

Hi folks, Please advise which command/command line shall I run; 1) to display the command and its output on console 2) simultaneous to save the command and its output on a file I tried tee command as follows; $ ps aux | grep mysql | tee /path/to/output.txt It displayed the... (7 Replies)
Discussion started by: satimis
7 Replies

7. UNIX for Dummies Questions & Answers

xterm display options

Hello everyboby, can someone write me all options for Xterm option -name. For example, I know that @d give me server ip... but, how to write something like ${USER}@${HOST}: ${PWD}$ on title bar ? I use a connection line like this @(XTerm, method=stdappdb) -fn 6x13 -bg AliceBlue -fg blue... (2 Replies)
Discussion started by: gogol_bordello
2 Replies

8. Shell Programming and Scripting

Display the output

Hi, I have the following output of a shell script k m == -77.2820 (Act=79.9) i want to display only k m (6 Replies)
Discussion started by: sreejithalokkan
6 Replies

9. Shell Programming and Scripting

Ambiguous output redirect in xterm

Hi all, I've been working on a bash script to help with backups that I have to do at work. One of the lines in the script is supposed to launch an xterm, log into a specific server node and launch a tar backup to tape. This part works ok, but I've been trying to get stdout and stderr to... (2 Replies)
Discussion started by: Exitalterego
2 Replies

10. HP-UX

Xterm display immediatly dies in hpux 11.23

After install of the Sept. 2010 patch set on my hpux 11.23 system, my xterm when launched, dies immediately on the client with the xserver, with a core.xterm file in root of the hpux server. This had been working before the patch install. I tried to find xterm patches from ITRC (yes the old... (1 Reply)
Discussion started by: mrmurdock
1 Replies
XGetDefault()															     XGetDefault()

Name
  XGetDefault - extract an option value from the resource database.

Synopsis
  char *XGetDefault(display, program, option)
	Display *display;
	char *program;
	char *option;

Arguments
  display  Specifies a connection to an X server; returned from XOpenDisplay().

  program  Specifies  the program name to be looked for in the resource database.  The program name is usually argv[0], the first argument on
	   the UNIX command line.

  option   Specifies the option name or keyword.  Lines containing both the program name and the option name, separated only by a  period  or
	   asterisk, will be matched.

Returns
  The resource value.

Description
  XGetDefault() returns a character string containing the user's default value for the specified program name and option name.	XGetDefault()
  returns NULL if no key can be found that matches option and program.	For a description of the matching rules, see XrmGetResource().

  The strings returned by XGetDefault() are owned by Xlib and should not be modified or freed by the client.

  Lines in the user's resource database look like this:

      xterm.foreground: 	 #c0c0ff
      xterm.geometry:		 =81x28
      xterm.saveLines:		 256
      xterm.font:		 8x13
      xterm.keyMapFile: 	 /usr/black/.keymap
      xterm.activeIcon: 	 on
      xmh.header.font		 9x15

  The portion on the left is known as a key; the portion on the right is the value.  Uppercase or lowercase is important in keys.   The  con-
  vention is to capitalize only the second and successive words in each option, if any.

  Resource  specifications are usually loaded into the XA_RESOURCE_MANAGER property on the root window at login.  If no such property exists,
  a resource file in the user's home directory is loaded.  On a UNIX-based system,  this  file	is  $HOME/.Xdefaults.	After  loading	these
  defaults, XGetDefault() merges additional defaults specified by the XENVIRONMENT environment variable.  If XENVIRONMENT is defined, it con-
  tains a full path name for the additional resource file.  If XENVIRONMENT is not defined, XGetDefault()  looks  for  $HOME/.Xdefaults-name,
  where  name specifies the name of the machine on which the application is running. If length of ".Xdefaults-name" is greater than 255, then
  $HOME/.Xdefaults-IP address is looked for instead, where IP address is the internet address of the host.

  The first invocation of XGetDefault() reads and merges the various resource files into Xlib so that subsequent requests are  fast.   There-
  fore, changes to the resource files from the program will not be felt until the next invocation of the application.

  For more information, see Volume One, Chapter 13, Managing User Preferences.

See Also
  XAutoRepeatOff(), XAutoRepeatOn(), XBell(), XChangeKeyboardControl(), XGetKeyboardControl(), XGetPointerControl().

Xlib - User Preferences 													     XGetDefault()
All times are GMT -4. The time now is 03:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy