Re: Detach Icedove from xterm itself called from terminal.

2011-12-03 Thread Chris Davies
Iuri Guilherme dos Santos Martins wrote: > Your script is very good, by the way. > Thanks for sharing :D Thank you, and a pleasure. Chris -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: htt

Re: Detach Icedove from xterm itself called from terminal.

2011-12-02 Thread Iuri Guilherme dos Santos Martins
Em 02-12-2011 17:36, Mart Frauenlob escreveu: ok, after reading the online help for xterm: as it calls a shell normally, why not let the shell just execute one command with the '-c' option? xterm -e sh -c 'icedove &' how does that behave? xterm should close after the shell closes, right?

Re: Detach Icedove from xterm itself called from terminal.

2011-12-02 Thread Mart Frauenlob
On 02.12.2011 17:09, Iuri Guilherme dos Santos Martins wrote: Em 01-12-2011 17:28, Mart Frauenlob escreveu: why use a shubshell for icedove, we expect to use the output for something? better use single quotes to protect the `&' to be parsed by the shell and to prevent from word splitting, so we

Re: Detach Icedove from xterm itself called from terminal.

2011-12-02 Thread Iuri Guilherme dos Santos Martins
Your script is very good, by the way. I used that to fix some errors i had in my Openbox menu that I was procrastinating to solve (nothing that couldn't be done by command line anyways). Thanks for sharing :D -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject o

Re: Detach Icedove from xterm itself called from terminal.

2011-12-02 Thread Chris Davies
Iuri Guilherme dos Santos Martins wrote: > Well, if you are willing to learn bash then what I would recommend is > exactly what Chris said [...] You don't need to learn bash to use the script I've offered. (Others here can sanity-check it so you don't need to "trust" my coding.) Chris -- To

Re: Detach Icedove from xterm itself called from terminal.

2011-12-02 Thread Iuri Guilherme dos Santos Martins
Well, the way that you could produce a bash script file and then run it with only one command would be like this: echo "#!/bin/bash \nicedove & \nexit" > script.sh && bash script.sh && rm script.sh Just make sure your Lua interpreter can understand the && What that does is create a file call

Re: Detach Icedove from xterm itself called from terminal.

2011-12-02 Thread Iuri Guilherme dos Santos Martins
Em 01-12-2011 17:28, Mart Frauenlob escreveu: why use a shubshell for icedove, we expect to use the output for something? better use single quotes to protect the `&' to be parsed by the shell and to prevent from word splitting, so we keep it as one 'word' option for xterm. echo exit > xter

Re: Detach Icedove from xterm itself called from terminal.

2011-12-01 Thread Paul Isambert
Le 01/12/2011 20:36, Iuri Guilherme dos Santos Martins a écrit : Now I get it, You must use the same command i sent you, however in the Lua language you should have an option to detach the command from the terminal Unfortunately, there is no such thing. That should work (assuming that no

Re: Detach Icedove from xterm itself called from terminal.

2011-12-01 Thread Mart Frauenlob
On 30.11.2011 17:25, Iuri Guilherme dos Santos Martins wrote: Well, the example i gave you opens another terminal (xterm) and opens icedove without closing the first terminal nor the second (assuming that you was using xterm in the first place). If you want the terminal to be closed, you may use

Re: Detach Icedove from xterm itself called from terminal.

2011-12-01 Thread Iuri Guilherme dos Santos Martins
Now I get it, You must use the same command i sent you, however in the Lua language you should have an option to detach the command from the terminal that you are using, and to close the terminal. That should work (assuming that now i did understand what you are doing). -- To UNSUBSCRIBE, e

Re: Detach Icedove from xterm itself called from terminal.

2011-12-01 Thread Paul Isambert
Em 01-12-2011 11:08, Chris Davies escreveu: > Paul Isambert wrote: > >> But Icedove still stays attached to the first terminal... >> > Just to check, you want to be able to start icedove from the command > line in (say) an xterm, but have it continue to run even when that > xterm is closed? No:

Re: Detach Icedove from xterm itself called from terminal.

2011-12-01 Thread Iuri Guilherme dos Santos Martins
Em 01-12-2011 11:08, Chris Davies escreveu: Paul Isambert wrote: But Icedove still stays attached to the first terminal... Just to check, you want to be able to start icedove from the command line in (say) an xterm, but have it continue to run even when that xterm is closed? And you'

Re: Detach Icedove from xterm itself called from terminal.

2011-12-01 Thread Chris Davies
Paul Isambert wrote: > But Icedove still stays attached to the first terminal... Just to check, you want to be able to start icedove from the command line in (say) an xterm, but have it continue to run even when that xterm is closed? And you're not really interested in stdout/stderr. I use thund

Re: Detach Icedove from xterm itself called from terminal.

2011-12-01 Thread Iuri Guilherme dos Santos Martins
The first terminal you say is supposed to be closed? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4ed76b6e.4010...@gmail.com

Re: Detach Icedove from xterm itself called from terminal.

2011-11-30 Thread Paul Isambert
Le 30/11/2011 17:02, Clive Standbridge a écrit : I don't know anything about Lua, but searching around suggests that os.execute executes its command in a shell, not directly. In that case you should be able to use a command like icedove & No, that didn't work, the terminal closes and icedo

Re: Detach Icedove from xterm itself called from terminal.

2011-11-30 Thread Iuri Guilherme dos Santos Martins
Well, the example i gave you opens another terminal (xterm) and opens icedove without closing the first terminal nor the second (assuming that you was using xterm in the first place). If you want the terminal to be closed, you may use: echo exit > xterm -e `icedove &` & (if you want the xterm

Re: Re: Detach Icedove from xterm itself called from terminal.

2011-11-30 Thread Clive Standbridge
Paul Isambert wrote: > Thanks Clive for your help. Unfortunately Icedove stays attached to the > uppermost terminal (which I want to close too, perhaps that wasn't > clear). Even with the simplest form: > > bash --rcfile <(echo icedove \&) > > when I close the terminal, it closes Icedove. > >

Re: Detach Icedove from xterm itself called from terminal.

2011-11-30 Thread Paul Isambert
Le 30/11/2011 15:52, Iuri Guilherme dos Santos Martins a écrit : I did not understand what you wanted, but i guess `xterm -e `icedove &` ` is close to the command you are looking for. The `` are used by bash to open a sub shell. (Assuming you are using bash). Thank you Iuri, but the termi

Re: Detach Icedove from xterm itself called from terminal.

2011-11-30 Thread Iuri Guilherme dos Santos Martins
I did not understand what you wanted, but i guess `xterm -e `icedove &` ` is close to the command you are looking for. The `` are used by bash to open a sub shell. (Assuming you are using bash). -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe".

Re: Detach Icedove from xterm itself called from terminal.

2011-11-30 Thread Paul Isambert
Le 30/11/2011 14:29, Clive Standbridge a écrit : Paul Isambert wrote: Hello there, When started from gnome-terminal, Icedove stays attached to it. I can detach it by executing "icedove&". The problem is, I can't seem to do that recursively, i.e. from the terminal call another terminal which ca

Re: Detach Icedove from xterm itself called from terminal.

2011-11-30 Thread Clive Standbridge
Paul Isambert wrote: > Hello there, > > > When started from gnome-terminal, Icedove stays attached to it. I can > detach it by executing "icedove &". The problem is, I can't seem to do > that recursively, i.e. from the terminal call another terminal which > calls "icedove &". The following works: