* Re: arg list too long?
2000-03-09 5:00 arg list too long? Christoph Arns
@ 2000-03-09 5:00 ` Leif Gustafsson
2000-03-09 5:00 ` Steffen Neumann
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Leif Gustafsson @ 2000-03-09 5:00 UTC (permalink / raw)
Hi !
Have a look at the command xargs.
/Leif Gustafsson
Sveriges Television
Sweden
Christoph Arns wrote:
> Hi,
>
> We are running 4.0F on a XP1000. I would like to pipe ~2500 - 5000 files
> through
> more to a user written program, but hit the message:
>
> more: Arg list too long
>
> while there are workarounds, is there a way to increase the limit
> itself?
>
> Thanks,
>
> Christoph
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: arg list too long?
2000-03-09 5:00 arg list too long? Christoph Arns
2000-03-09 5:00 ` Leif Gustafsson
@ 2000-03-09 5:00 ` Steffen Neumann
2000-03-10 5:00 ` Christoph Arns
2000-03-15 5:00 ` Adam Price
2000-03-15 5:00 ` erwan
3 siblings, 1 reply; 7+ messages in thread
From: Steffen Neumann @ 2000-03-09 5:00 UTC (permalink / raw)
Hi!
I don't know what command line you try to use,
but "xargs" allows you to throw n arguments
at a time to your application.
cat files.list | xargs -n 17 more | foo
In case this didn't help,
please give some more information.
I never heared of using more as filter,
what's it supposed to do ?!
So long,
Steffen
Christoph Arns <c.arns@unsw.edu.au> writes:
> Hi,
>
> We are running 4.0F on a XP1000. I would like to pipe ~2500 - 5000 files
> through
> more to a user written program, but hit the message:
>
> more: Arg list too long
>
> while there are workarounds, is there a way to increase the limit
> itself?
>
> Thanks,
>
> Christoph
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: arg list too long?
2000-03-09 5:00 ` Steffen Neumann
@ 2000-03-10 5:00 ` Christoph Arns
2000-03-10 5:00 ` Bernd Demian
0 siblings, 1 reply; 7+ messages in thread
From: Christoph Arns @ 2000-03-10 5:00 UTC (permalink / raw)
> In case this didn't help,
> please give some more information.
> I never heared of using more as filter,
> what's it supposed to do ?!
I should have given the full command line, you are right. I tried:
cat *.mor | io_mor.out 2
# the user program 'io_mor.out' just digest the data
more *.mor | io_mor.out 2
in both cases I get 'arg list too long', the filter *.mor fits > 2500
files. The
way around I use is, to first cat them into a file with multiple cat
commands,
and then process the resulting temporary file.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: arg list too long?
2000-03-10 5:00 ` Christoph Arns
@ 2000-03-10 5:00 ` Bernd Demian
0 siblings, 0 replies; 7+ messages in thread
From: Bernd Demian @ 2000-03-10 5:00 UTC (permalink / raw)
Christoph Arns wrote:
> > In case this didn't help,
> > please give some more information.
> > I never heared of using more as filter,
> > what's it supposed to do ?!
>
> I should have given the full command line, you are right. I tried:
>
> cat *.mor | io_mor.out 2
> # the user program 'io_mor.out' just digest the data
> more *.mor | io_mor.out 2
>
> in both cases I get 'arg list too long', the filter *.mor fits > 2500
> files. The
> way around I use is, to first cat them into a file with multiple cat
> commands,
> and then process the resulting temporary file.
Hi Christoph,
try this
find . -name "*.mor" | xargs .....
| io_mor.out 2
Bernd
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: arg list too long?
2000-03-09 5:00 arg list too long? Christoph Arns
2000-03-09 5:00 ` Leif Gustafsson
2000-03-09 5:00 ` Steffen Neumann
@ 2000-03-15 5:00 ` Adam Price
2000-03-15 5:00 ` erwan
3 siblings, 0 replies; 7+ messages in thread
From: Adam Price @ 2000-03-15 5:00 UTC (permalink / raw)
Christoph Arns wrote in message <38C78D71.575F60@unsw.edu.au>...
>more: Arg list too long
>while there are workarounds, is there a way to increase the limit
>itself?
Well either the limit is in the more command, the shell or the exec
function call.
If you are hitting limits in either of the first two, then you can
obtain source code for a replacement and should be able to recompile
with bigger limits.
If the problem is with exec then tough luck.
The best thing to do is to use xargs anyway, it is a far more portable
solution.
Hope this helps
Adam Price
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: arg list too long?
2000-03-09 5:00 arg list too long? Christoph Arns
` (2 preceding siblings ...)
2000-03-15 5:00 ` Adam Price
@ 2000-03-15 5:00 ` erwan
3 siblings, 0 replies; 7+ messages in thread
From: erwan @ 2000-03-15 5:00 UTC (permalink / raw)
I am unix administrator ....
You cannot modify a parameter in the kernel when you delete
a lot of file .
It is hard code in the kernel.
B lebec
In article <38C78D71.575F60@unsw.edu.au>, Christoph Arns
<c.arns@unsw.edu.au> wrote:
> Hi,
> We are running 4.0F on a XP1000. I would like to pipe
> ~2500 - 5000 files
> through
> more to a user written program, but hit the message:
> more: Arg list too long
> while there are workarounds, is there a way to
> increase the limit
> itself?
> Thanks,
> Christoph
* Sent from AltaVista http://www.altavista.com Where you can also find related Web Pages, Images, Audios, Videos, News, and Shopping. Smart is Beautiful
^ permalink raw reply [flat|nested] 7+ messages in thread