"MS" == Maxwell Spangler <maxwell_at_clark.net> writes:
MS> I want to do:
MS> AddToFunc RemoteShell + "I" Exec rsh -n -l $1 $2 "/usr/bin/X11/xterm
MS> -display $3"
MS> $1 = user to login on remote as $2 = remote host system name $3 = name
MS> of X display SERVER to which output of xterm will be placed.
...
MS> This isn't working at all, and I haven't been able to find examples of
MS> calling functions with numbered parameters.. Anybody else doing this?
MS> Anybody want to make an attempt to get it working and show me how its
MS> done?
>From the manual:
The special symbols $w and $0 through $9 are available
in the ComplexFunctions or Macros, or whatever you want
to call them. Within a macro, $w is expanded to the
window-id (expressed in hex, ie 0x10023c) of the window
for which the macro was called. $0 though $9 are the
arguments to the macro, so if you call
(useful example follows!!!)
So, change it to:
AddToFunc RemoteShell
+ "I" Exec rsh -n -l $0 $1 "/usr/bin/X11/xterm -display $2"
It works.
"man fvwm2" is a quite useful reading for the fvwm2 user ;-)
Happy reading,
--
Jose' Pereira Tel. +351.1.841 9340
DEEC - Dep. of Electrical and Computer Engineering Fax. +351.1.841 7499
Instituto Superior Tecnico - Technical University of Lisboa
Av. Rovisco Pais - 1096 Lisboa Codex - Portugal
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Thu May 21 1998 - 17:57:37 BST