in reply to Re: Launch from Tk
in thread Launch from Tk


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.

Replies are listed 'Best First'.
Re: Re: Re: Launch from Tk
by The Mad Hatter (Priest) on May 30, 2003 at 11:59 UTC
    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.)