Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Passing DISPLAY variable through rsh Post 1215 by PxT on Friday 16th of February 2001 10:45:44 AM
Old 02-16-2001
Many X applications will take a "-display" argument. Something like:

xv -display sunbox:0


Another alternative is to use ssh, as it handles the display variable automatically.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Variable passing

Hi, If a script A(Parent) is running and script B(child) is run from script A, will the variables in script A be past to script B? Will the variables exist only for the duration of running the script? Thank you (2 Replies)
Discussion started by: whugo
2 Replies

2. UNIX for Dummies Questions & Answers

passing a variable inside a variable to a function

I would like to know how to pass a variable inside a variable to a function. sample code below -------------- for x in 1 9 do check_null $C$x ##call function to check if the value is null if then echo "line number:$var_cnt,... (2 Replies)
Discussion started by: KingVikram
2 Replies

3. Shell Programming and Scripting

passing a variable inside another variable.

Any help would be great. I know this is a dumb way of doing this, but I would like to know if there is a solution doing it this way. I'm very new at this and I'd like to learn more. Thanks! :D:D count=0 while ; do echo "enter your name" read name_$count let count=count+1 done ... (2 Replies)
Discussion started by: reconflux
2 Replies

4. Shell Programming and Scripting

Passing shell variables to a rsh command

I noticed my script is not passing the value of variable alert to the rsh command. I need some assistance, please. This is a solaris environement. Thanks! :confused: #!/bin/sh echo -n "Alert number:" read alert rsh rhost_name 'egrep $alert /opt/var/log/*.logs' (2 Replies)
Discussion started by: lopus
2 Replies

5. UNIX for Dummies Questions & Answers

Passing a command in a variable

I need to set up a strange system through which an arbitrary command is sent to a number of different servers (well, actually, VPS accounts). We have a command "vpass" that "passes" a command from the root level to resident VPS accounts. Suppose I wanted each VPS to do some trivial thing, like... (3 Replies)
Discussion started by: treesloth
3 Replies

6. Shell Programming and Scripting

awk, double variable, for loop and rsh

Hello folks, I've a (perhaps) simple question. In a text file I've : server_name1: directory1 server_name2: directory2 server_name3: directory3 I want to make a loop that lets me connect and operate on every server: rsh server_name1 "ls -l directory1" I've tried with awk,... (6 Replies)
Discussion started by: gogol_bordello
6 Replies

7. Shell Programming and Scripting

Passing variable with *

Hi Folks, I would like to pass a variable with a wild card in an argument. My script works if I don't use a wildcard but fails when I use *. I want to use the script like: scriptname -F <filename*> @ i = 0 while ($i <= ${#argv}) switch ($argv) case -F: set j = `echo $i +1... (2 Replies)
Discussion started by: dixits
2 Replies

8. Shell Programming and Scripting

Cannot pass rsh and awk command into a variable

Hello, I'm having some issues getting a home dir from a remote server passed to a variable. Here is what I have so far: rsh server "(ls -ld /home*/user | awk '{print \$9}')" /home3/userThat works fine and brings back what I need. But when I try to add it to a variable it goes all... (3 Replies)
Discussion started by: elcounto
3 Replies

9. Shell Programming and Scripting

Passing dynamic variable within another variable.

I have a small program which needs to pass variable dynamically to form the name of a second variable whose value wil be passed on to a third variable. ***************** Program Start ****************** LOC1=/loc1 PAT1IN=/loc2 PAT2IN=/loc3 if ; then for fpattern in `cat... (5 Replies)
Discussion started by: Cyril Jos
5 Replies

10. UNIX for Advanced & Expert Users

Passing variable as input & storing output in other variable

I have a below syntax its working fine... var12=$(ps -ef | grep apache | awk '{print $2,$4}') Im getting expected output as below: printf "%b\n" "${VAR12}" dell 123 dell 456 dell 457 Now I wrote a while loop.. the output of VAR12 should be passed as input parameters to while loop and results... (5 Replies)
Discussion started by: sam@sam
5 Replies
Gtk2::Gdk::Display(3)					User Contributed Perl Documentation				     Gtk2::Gdk::Display(3)

NAME
Gtk2::Gdk::Display HIERARCHY
Glib::Object +----Gtk2::Gdk::Display METHODS
$display->beep $display->close device = $display->get_core_pointer $display->set_cursor_theme ($theme, $size) o $theme (string) o $size (integer) Since: gtk+ 2.8 integer = $display->get_default_cursor_size Since: gtk+ 2.4 display or undef = Gtk2::Gdk::Display->get_default window = $display->get_default_group Since: gtk+ 2.4 screen = $display->get_default_screen $display->set_double_click_distance ($distance) o $distance (integer) Since: gtk+ 2.4 $display->set_double_click_time ($msec) o $msec (integer) event = $display->get_event $display->flush Since: gtk+ 2.4 $display->grab $display->keyboard_ungrab ($time_) o $time_ (unsigned) list = $display->list_devices Returns a list of Gtk2::Gdk::Devices (width, height) = $display->get_maximal_cursor_size Since: gtk+ 2.4 integer = $display->get_n_screens string = $display->get_name display or undef = Gtk2::Gdk::Display->open ($display_name) o $display_name (string or undef) event = $display->peek_event list = $display->get_pointer boolean = $display->pointer_is_grabbed $display->pointer_ungrab ($time_) o $time_ (unsigned) $display->put_event ($event) o $event (Gtk2::Gdk::Event) $display->register_standard_event_type ($event_base, $n_events) o $event_base (integer) o $n_events (integer) Since: gtk+ 2.4 boolean = $display->request_selection_notification ($selection) o $selection (Gtk2::Gdk::Atom) Since: gtk+ 2.6 screen = $display->get_screen ($screen_num) o $screen_num (integer) string = $display->get_startup_notification_id Since: gtk+ 2.12 $display->store_clipboard ($clipboard_window, $time_, ...) o $clipboard_window (Gtk2::Gdk::Window) o $time_ (unsigned) o ... (list) of Gtk2::Gdk::Atom's Since: gtk+ 2.6 boolean = $display->supports_clipboard_persistence Since: gtk+ 2.6 boolean = $display->supports_composite Since: gtk+ 2.12 boolean = $display->supports_cursor_alpha Since: gtk+ 2.4 boolean = $display->supports_cursor_color Since: gtk+ 2.4 boolean = $display->supports_input_shapes Since: gtk+ 2.10 boolean = $display->supports_selection_notification Since: gtk+ 2.6 boolean = $display->supports_shapes Since: gtk+ 2.10 $display->sync $display->ungrab unsigned = $display->get_user_time Since: gtk+ 2.8 $display->warp_pointer ($screen, $x, $y) o $screen (Gtk2::Gdk::Screen) o $x (integer) o $y (integer) Since: gtk+ 2.8 (window, win_x, win_y) = $display->get_window_at_pointer ($display) SIGNALS
closed (Gtk2::Gdk::Display, boolean) SEE ALSO
Gtk2, Glib::Object COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team. This software is licensed under the LGPL. See Gtk2 for a full notice. perl v5.12.1 2010-07-05 Gtk2::Gdk::Display(3)
All times are GMT -4. The time now is 04:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy