Re: xterm: how to open a new xterm and run telnet

From: Stephane CHAZELAS (this.address_at_is.invalid)
Date: 01/30/04


Date: Fri, 30 Jan 2004 12:22:14 +0100

2004-01-30, 00:54(-08), ajay:
[...]
> xterm -e telnet SERVER2
>
> This works fine if i issue this command from the command line. But
> when i put into alias it doesn't work. Just for a moment new xterm
> window appears and then disappears.
>
> alias black='xterm -e telnet SERVER2 -cr red -ms blue -ls -rw -sb -sk
> -sl
> 200000 -T "SERVER1" -bg black -fg white -vb -fn courr14 -geometry
> 70x30 &'
>
> What's wrong with the above alias?
[...]

it runs telnet SERVER2 -cr red -ms ... in xterm.
Put the "-e" option last.

Note the "resource" mechanism in the xterm man page if you don't
want to issue all those options each time.

-- 
Stéphane                      ["Stephane.Chazelas" at "free.fr"]


Relevant Pages

  • Re: OT: the rm bug hit me again
    ... And the -f in the rm command it to stop the "Confirm delete?" ... My rm is set to confirm all deletes using alias. ... the reason is to help prevent those type human errors when you are root ... I personally like the prompt because it reminds me that I am running as ...
    (Fedora)
  • Re: Def alias error in RACF
    ... to define an Alias in a RACF environment with z/OS V1.7 release? ... At the moment to send the request in command line (through the RACF ... Actually, that's a TSO command, not a RACF command. ...
    (bit.listserv.ibm-main)
  • Re: OT: the rm bug hit me again
    ... And the -f in the rm command it to stop the "Confirm delete?" ... That's not a good idea as it teaches you to expect to be prompted, and you'll be bitten badly some time when the alias isn't present. ... the reason is to help prevent those type human errors when you are root ... A user who expects rm to prompt will only delete their own files if it doesn't, a root user who expects rm to prompt can delete the entire system if it doesn't. ...
    (Fedora)
  • Re: window manager not picking up Xresources?
    ... window manager are clearly ignoring my Xresources settings. ... If I launch a second window ... capitals), but you start the program as "xterm," it won't work. ... The suspect behaviour is exhibited even if the command name is the same: ...
    (Debian-User)
  • TCPIP glitch wih aliases
    ... I needed to move the cluster alias IP from an alpha to a vax. ... Turns out the above command disabled all IPs on the WE0 interface, AND zapped the permanent routes from the active database. ... doing IFCONFIG WE0 10.0.0.11 up seemed to work, but it did not restor the routes so that node had no way to reach IPs outside its subnet. ...
    (comp.os.vms)