in reply to Launch from Tk

why not do something like ... xterm +u8 -fn &

Replies are listed 'Best First'.
Re: Re: Launch from Tk
by aplonis (Pilgrim) on May 30, 2003 at 03:36 UTC

    Yes, thought of that first.

    If I do...
    `foo bar &`;
    ...Tk freezes till xterm is closed.

    If I do...
    system("foo", "bar", "&");
    ...then xterm rejects the & as bad cli option.

    If I put the xterm call in foo.sh and do...
    `~/foo.sh &`;
    ...Tk still freezes till xterm is closed.

    If I put the xterm call in foo.sh and do...
    system("~/foo.sh", "&");
    ...nothing apears to happen. I get no xterm.

    But if I call ~/foo.sh on the cli, thin I do
    get the xterm. So the script foo.sh is okay.

    I tried all those things before coming here.
    I am a little stumped.
      What if you put
      #!/bin/sh xterm +u8 -fn ... &
      in ~/foo.sh and then did system '~/foo.sh'?

      (I'd test it right now, but I'm at school.)