On Wednesday 23 December 2009 09:47:01 pm Mike Schuh wrote: Thanks, guys. That sends me down a new path.
> On Wed, 23 Dec 2009, Brian Lane wrote: > >On 12/23/09 8:31 PM, Thomas Taylor wrote: > >> I'm new to bash scripting and am wondering how to tie two or more > >> commands together. As an example, to start an xterm session and run a > >> command within it. > >> > >> Start xterm & run "ps -ux in it. > >> > >> I can do each separately in bash but haven't figured how to do them in > >> unison. > > > >xterm -e "ps -ux" > > This works, but as soon as the command completes, the window closes, > typically before the output of ps can be read. > > Try: > > xterm -e 'ps -ux; read' > > Then type any character in the window to close it. > -- Thanks, Tom Taylor li...@comcast.net