Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.unix.shell > #1729
| From | Bill Marcum <bill@lat.localnet> |
|---|---|
| Newsgroups | comp.unix.shell |
| Subject | Re: Start a shell and automatically start another program |
| Date | 2011-08-19 15:19 -0400 |
| Organization | PWN - Penguins With Nukes |
| Message-ID | <slrnj4tdqd.rcg.bill@lat.localnet> (permalink) |
| References | (2 earlier) <j2jmb6$4l3$1@news.xmission.com> <j2k463$js0$1@dont-email.me> <j2k4j4$39s$1@speranza.aioe.org> <j2ktlt$ich$2@dont-email.me> <f496eda1-a9b1-4279-ae3d-06d085caf121@eb1g2000vbb.googlegroups.com> |
On 2011-08-19, dspfun <dspfun@hotmail.com> wrote: > On 19 Aug, 07:51, James Waldby <n...@valid.invalid> wrote: > >> gnome-terminal -e "/bin/sh -c 'date; emacs& ps --forest; /bin/sh'" > > Can you explain what happens when the shell executes the above line? > > For example, why is the "&" necessary after "emacs". I have tried with > ";" instead and that doesn't work, nor does a "&;" work after "emacs" > work. > "&" starts a command without waiting for it to finish. Commands can be separated by either "&" or ";" but not both. > Also, why is the last "/bin/sh" necessary (since it doesn't work > without it)? > The last "/bin/sh" starts a new interactive shell. > Brs, > Markus -- Practical people would be more practical if they would take a little more time for dreaming. -- J. P. McEvoy
Back to comp.unix.shell | Previous | Next — Previous in thread | Next in thread | Find similar
Start a shell and automatically start another program dspfun <dspfun@hotmail.com> - 2011-08-18 06:41 -0700
Re: Start a shell and automatically start another program Janis Papanagnou <janis_papanagnou@hotmail.com> - 2011-08-18 17:07 +0300
Re: Start a shell and automatically start another program Icarus Sparry <i.sparry+un@gmail.com> - 2011-08-18 14:20 +0000
Re: Start a shell and automatically start another program Stephane CHAZELAS <stephane_chazelas@yahoo.fr> - 2011-08-18 15:07 +0000
Re: Start a shell and automatically start another program gazelle@shell.xmission.com (Kenny McCormack) - 2011-08-18 18:40 +0000
Re: Start a shell and automatically start another program James Waldby <not@valid.invalid> - 2011-08-18 22:36 +0000
Re: Start a shell and automatically start another program Janis Papanagnou <janis_papanagnou@hotmail.com> - 2011-08-19 01:43 +0300
Re: Start a shell and automatically start another program James Waldby <not@valid.invalid> - 2011-08-19 05:51 +0000
Re: Start a shell and automatically start another program dspfun <dspfun@hotmail.com> - 2011-08-18 23:58 -0700
Re: Start a shell and automatically start another program dspfun <dspfun@hotmail.com> - 2011-08-19 00:41 -0700
Re: Start a shell and automatically start another program dspfun <dspfun@hotmail.com> - 2011-08-19 01:14 -0700
Re: Start a shell and automatically start another program dspfun <dspfun@hotmail.com> - 2011-08-19 01:18 -0700
Re: Start a shell and automatically start another program James Waldby <not@valid.invalid> - 2011-08-19 19:59 +0000
Re: Start a shell and automatically start another program dspfun <dspfun@hotmail.com> - 2011-08-22 01:13 -0700
Re: Start a shell and automatically start another program James Waldby <not@valid.invalid> - 2011-08-22 18:47 +0000
Re: Start a shell and automatically start another program Bill Marcum <bill@lat.localnet> - 2011-08-19 15:19 -0400
Re: Start a shell and automatically start another program dspfun <dspfun@hotmail.com> - 2011-08-19 03:24 -0700
Re: Start a shell and automatically start another program bonomi@host122.r-bonomi.com (Robert Bonomi) - 2011-08-19 11:25 -0500
Re: Start a shell and automatically start another program gazelle@shell.xmission.com (Kenny McCormack) - 2011-08-19 16:30 +0000
Re: Start a shell and automatically start another program Bill Marcum <bill@lat.localnet> - 2011-08-19 15:16 -0400
Re: Start a shell and automatically start another program Seebs <usenet-nospam@seebs.net> - 2011-08-20 05:36 +0000
Re: Start a shell and automatically start another program gazelle@shell.xmission.com (Kenny McCormack) - 2011-08-20 11:50 +0000
Re: Start a shell and automatically start another program gazelle@shell.xmission.com (Kenny McCormack) - 2011-08-19 01:44 +0000
Re: Start a shell and automatically start another program James Waldby <not@valid.invalid> - 2011-08-19 05:17 +0000
Re: Start a shell and automatically start another program Seebs <usenet-nospam@seebs.net> - 2011-08-19 05:25 +0000
Re: Start a shell and automatically start another program gazelle@shell.xmission.com (Kenny McCormack) - 2011-08-19 14:08 +0000
csiph-web