4,138 reputation
22040
bio website ole.tange.dk
location
age
visits member for 4 years, 1 month
seen 7 hours ago

I am strong believer in free software.

I do not believe in Santa, ghosts, fairies, goblins, and gods.


2d
comment Can you make a process pool with shell scripts?
Some of the problems with xargs are described here: gnu.org/software/parallel/… Some of the problems with prll are described here gnu.org/software/parallel/…
2d
answered Can you make a process pool with shell scripts?
2d
answered how to workaround a deadlock (multithreading a program)
Jan
27
awarded  Famous Question
Jan
24
revised Compatibility scripting: Save $? for use later
added 7 characters in body
Jan
24
revised Compatibility scripting: Save $? for use later
added 45 characters in body
Jan
24
comment Compatibility scripting: Save $? for use later
tcsh is happy. csh complains: Illegal variable name.
Jan
19
accepted bash: /usr/bin/perl: Argument list too long
Jan
19
comment bash: /usr/bin/perl: Argument list too long
Is there a place where I can find that documented?
Jan
18
comment bash: /usr/bin/perl: Argument list too long
. <(seq 17 | parallel echo \''echo {};export ac{}=$(yes | head -c120k)'\' ) # works and 'env|wc' = 'getopt ARG_MAX' = 2 MB. 'ulimit -s' = 8 MB, so that fits with the 1/4 of stack size. I still do not see where the 128 KB limit per variable is from (I use Linux kernel 3.13.0).
Jan
18
comment bash: /usr/bin/perl: Argument list too long
@HaukeLaging Yes: the commands and the output is exactly what I run and see in that order.
Jan
18
comment bash: /usr/bin/perl: Argument list too long
$ getconf ARG_MAX = 2097152, so that is not the limit.
Jan
18
accepted Compatibility scripting: Save $? for use later
Jan
18
revised bash: /usr/bin/perl: Argument list too long
added 114 characters in body
Jan
18
asked bash: /usr/bin/perl: Argument list too long
Jan
17
comment csh: Get rid of job+PID when forking
The point about the guarantee is spot on. This is exactly why I cannot use sh -c: There is no guarantee that the command will work in sh. Only the user will know which shell is the correct answer; I will not.
Jan
17
reviewed Edit csh: Get rid of job+PID when forking
Jan
17
revised csh: Get rid of job+PID when forking
This question is also relevant for tcsh
Jan
17
asked csh: Get rid of job+PID when forking
Jan
17
comment Compatibility scripting: Save $? for use later
@Barmar Show me how you would do it: Post an answer. It needs to work just as well as the perl answer.