Re: parallel treats input as a single token

2012-11-24 Thread John
>You do not write if you have watched the intro videos and read the >examples in the man page. Please do that with empasis on >http://www.gnu.org/software/parallel/man.html#example__use_a_table_as_input Thank you so much for the reference.  I found the video you mentioned. http://www.youtube.c

Re: parallel treats input as a single token

2012-11-24 Thread Martin Møller Skarbiniks Pedersen
On 24 November 2012 16:03, John wrote: > Tell me: [...] > 2) How did you get it to display the statistics about the command (like user, > system, CPU %, etc.)? I think I can answer that one. $ time ls real0m0.002s user0m0.000s sys 0m0.000s $ /usr/bin/time ls 0.00user 0.00system 0

Re: parallel treats input as a single token

2012-11-24 Thread John
> Then it is because you are using a time that it bulitin your the shell eg. > bash. Thank you, Martin!

zsh problem: exporting a function within a bash script for parallel to use

2012-11-24 Thread John
Here is a simplified bash script.  The goal is to get parallel to run the 'work' function from within the script.  Per the man page, one needs to `export -f FUNCTION` for this functionality, but I get the following error when I try running it from zsh.  If I run it from a bash shell, everything

Re: zsh problem: exporting a function within a bash script for parallel to use

2012-11-24 Thread Martin Møller Skarbiniks Pedersen
On 24 November 2012 17:50, John wrote: > Here is a simplified bash script. The goal is to get parallel to run the > 'work' function from within the script. Per the man page, one needs to > `export -f FUNCTION` for this functionality, but I get the following error > when I try running it from

Re: zsh problem: exporting a function within a bash script for parallel to use

2012-11-24 Thread John
> is the very first line in your script > #!/bin/bash or "###BEGIN SCRIPT" ? > > #!/bin/bash > must be on the very first line. I confused you.  The script does not have ### lines in it at all.  I inserted them to take to make it clear that it was code.  Here is the script which does indeed st

Spawning jobs in a staggered start?

2012-11-24 Thread John
Is there a way to have parallel spawn jobs on a delayed start with 1 sec delay between each one? In other words, invoke parallel: job1 sleep 1s && job2 sleep 1s && job3 sleep 1s && job4 ... sleep 1s && jobN I am calling parallel from a table if that matters: % parallel -a jobsfile --colsep ','

Re: Spawning jobs in a staggered start?

2012-11-24 Thread John
> Is there a way to have parallel spawn jobs on a delayed start with 1 sec > delay  > between each one? > > In other words, invoke parallel: > > job1 > sleep 1s && job2 > sleep 1s && job3 > sleep 1s && job4 > ... > sleep 1s && jobN > > I am calling parallel from a table if that matters: > % pa