Re: Re(2): automating execution of script.

2011-12-20 Thread Bob Proulx
Andrei Popescu wrote: > Bob Proulx wrote: > > Better to do it elsewhere rather than from your ~/.bashrc file. > > > > > while "1" do > > > if (inotifywait -e modify ~/control.sh) = 0 > > >then { chmod u+x ~/control.sh; ~/control.sh; } > ~/controlresult > > > fi > > > done & > > # apt-get

Re: Re(2): automating execution of script.

2011-12-20 Thread Andrei Popescu
On Lu, 19 dec 11, 15:24:19, Bob Proulx wrote: > > Better to do it elsewhere rather than from your ~/.bashrc file. > > > while "1" do > > if (inotifywait -e modify ~/control.sh) = 0 > >then { chmod u+x ~/control.sh; ~/control.sh; } > ~/controlresult > > fi > > done & # apt-get install inc

Re: Re(2): automating execution of script.

2011-12-19 Thread Bob Proulx
peasth...@shaw.ca wrote: > What if the loop is backrgounded? That would still launch one every time you log in. You could potentially have many of them running. You would need to semaphore it so that only one incoming server runs at a time. Better to do it elsewhere rather than from your ~/.bas

Re(2): automating execution of script.

2011-12-19 Thread peasthope
* From: Bob Proulx * Date: Mon, 19 Dec 2011 11:47:39 -0700 You have that in a loop forever, right? Yes. The objective is a J interpreter server. > How will you log in? Oops. That's what I meant about shooting my foot. What if the loop is backrgounded? while "1" do if (inotif