On Tue, Aug 4, 2009 at 12:44 PM, Chet Ramey wrote:
>> It seems to me that this loop should just wait until the process is
>> 'kill -CONT'ed and keep right on going as if nothing had happened. Is
>> there any reason not to do this?
>
> Ummm...yes. It renders job control useless. If we have the sh
I notice that if I do this in one (interactive) shell
$ for n in 1 2 3 4 5; do /bin/sleep 60; echo $n; done
and then 'kill -STOP' the sleep process (from another window), that
bash will proceed to run the next loop iteration. That is, it echos
'1' and starts a new /bin/sleep, even while the
On Thu, Apr 2, 2009 at 11:57 AM, Chris F.A. Johnson wrote:
> If that's what you want, you can include it in the function:
>
> p()
> {
> _p=$( type -p "$@" )
> [ -n "$_p" ] && ls -l $_p
> }
This is more or less what I'm doing now, with one function for each
command. I suppose the command coul
On Thu, Apr 2, 2009 at 3:16 PM, Jan Schampera wrote:
> Mike Coleman wrote:
>> [Oops--I sent that incomplete.]
>>
>> It would be nice if there was some really brief syntax for
>>
>> $(type -p somecommand)
>>
>> I find myself using this all day lon
On Thu, Apr 2, 2009 at 11:33 AM, Chris F.A. Johnson wrote:
> On Thu, 2 Apr 2009, Mike Coleman wrote:
>
>> [Oops--I sent that incomplete.]
>>
>> It would be nice if there was some really brief syntax for
>>
>> $(type -p somecommand)
>>
>> I find
[Oops--I sent that incomplete.]
It would be nice if there was some really brief syntax for
$(type -p somecommand)
I find myself using this all day long with 'ls', 'file', 'ldd',
'strings', 'nm', etc., and the current incantation is just long enough
to be annoying.
Mike
It would be nice if there was some really brief syntax for
$(type -p somecommand)
On Sat, Oct 4, 2008 at 7:02 PM, Bob Proulx <[EMAIL PROTECTED]> wrote:
> If you start working with compute queues you will find that there are
> endless different ways that people want to define job slots. It isn't
> a simple problem.
Sure, but for the scenario I have in mind, perfection is not
ne
On Fri, Oct 3, 2008 at 4:13 AM, Jan Schampera <[EMAIL PROTECTED]> wrote:
> Mike Coleman wrote:
>>
>> Here's a bash feature I'd love to see, but don't have time to
>> implement myself: a "--free-slot" flag to 'wait' that will wait unti
Here's a bash feature I'd love to see, but don't have time to
implement myself: a "--free-slot" flag to 'wait' that will wait until
there is at least one free "slot" available, where a slot is basically
a CPU core.
Example usage:
$ for ((n=0; n<100; n++)); do
my_experiment $n > $n.out &
10 matches
Mail list logo