Search Results
| Search type | Search syntax |
|---|---|
| Tags | [tag] |
| Exact | "words here" |
| Author |
user:1234 user:me (yours) |
| Score |
score:3 (3+) score:0 (none) |
| Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
| Views | views:250 |
| Code | code:"if (foo != bar)" |
| Sections |
title:apples body:"apples oranges" |
| URL | url:"*.example.com" |
| Saves | in:saves |
| Status |
closed:yes duplicate:no migrated:no wiki:no |
| Types |
is:question is:answer |
| Exclude |
-[tag] -apples |
| For more details on advanced search visit our help page | |
Results for parallel script
Search options not deleted
2
votes
3
answers
4k
views
How to pass variable into parallel script from text file line by line
I need to read a file line by line and pass the string as a variable for a script to be run in parallel. … ex:
14
43
57
is in foo.txt
if I var=$(cat foo.txt) then I can use this $var for inside a script, but how to call parallel to change this variable for each instance running the script? …
0
votes
1
answer
124
views
How to run two parallel scripts in Shell but wait on a "middle" script to exit
output)
I've seen this answer: Run commands in parallel and wait for one group of commands to finish before starting the next but I don't think my requirements are the same since the first script will … never exit.
# This runs continuously
nps $DEV_SCRIPT &
# How can I not run the final parallel script until this exits? …
1
vote
2
answers
3k
views
Execution of Parallel Script from a single Cron Job
How to execute a different command/script (Task-B) in a parallel mode, while the primary task command/script (Task-A) is exceeding the defined time window/period; which is mentioned in the crontab ? …
0
votes
1
answer
845
views
pass variable from shell script to GNU parallel [duplicate]
The first script uses a for loop to pass an environment variable to the second script, which makes the call to parallel, which runs a julia script, again passing the variable. … /bin/bash
parallel julia ~/PATH/TO/FILE/bash-test.jl ::: {$my_var..100..1}
This above call to parallel to run Julia works fine if I replace the $my_var with 1 for example, but as soon as I add in the …
2
votes
1
answer
370
views
bash array printf in gnu parallel
I am trying pass bash array variable, that contain two elements to GNU parallel script:
echo ${opts[@]} … input/100206/unprocessed/3T/T1w_MPR1/100206_3T_T1w_MPR1.nii.gz -s 100408 -i /input/100408/unprocessed/3T/T1w_MPR1/100408_3T_T1w_MPR1.nii.gz
I tried to run it like this
printf '%s\n' "${opts[@]}" | parallel …
1
vote
1
answer
3k
views
Bash script not sleeping when running scripts in parallel
I have several bash scripts that I need to run in parallel. However, they are memory hogs so I would like to stagger each of them by 30 seconds but still run in parallel. … However, all of the Hour scripts run at once (correctly, and in parallel) when the main script is executed, and does not wait the 30 seconds that I have specified to run one after the other. …
9
votes
5
answers
9k
views
run a script in multiple folders in parallel
Each sub-directory has several files and a for loop shell script. The same for loop script is present in each sub-directory. … I want to go into each sub-directory and run the for loop script in parallel in several terminals. …
7
votes
1
answer
3k
views
Parallel execution of bash script
Now, I need to make the script run fast. The easy solution that comes to my mind is:
split the URL_Experiment into 10 tables (each with 200,000 rows) and run the script 10 times simultaneously. … Something which will execute the same script simultaneously (in parallel) as 10 processes. My concern is the execution time. I do not want the resources to be wasted when they can be utilized. …
1
vote
2
answers
161
views
Getting an array into a parallel bash script
I'm having a bit of difficulty understanding parallel procedures. Atm I'm trying to mass wipe hard drives, so have created a script, however it won't run in parallel.
for i in "${! …
1
vote
1
answer
403
views
GNU Parallel Python Semaphore
I have a Python script parallelized through GNU parallel which finds a certain result which I would like to output to a file, which I currently do through standard Python file IO. … My current script is:
#!/bin/bash
time parallel -j$(nproc) -N0 python3 ./polynomial_generator.py ::: {1..10} --progress echo {} >/tmp/out …
0
votes
1
answer
598
views
Simplify and parallel bash if statement script
I have written a script that finds files in directories, and brings through if statement, here is a code:
for dirname in /input/*; do
id=${dirname#/input/} # remove "/input/sub-"
id=${id%/ … How could I simplify if statements and parallel this script? …
3
votes
1
answer
953
views
A GNU Parallel Job Queue Script
The script very well may be over complicated. I was looking for a job queue system and found nqs which became the GNU Parallel project. … I cannot find many examples of queueing jobs with parallel but came across that script on GitHub and decided to give it a shot. …
2
votes
1
answer
818
views
gnu parallel with no argument script
I have 4 cores, and 4 python script files preprocess0.py, preprocess1.py, preprocess2.py, preprocess3.py. I would like to run these 4 processes in parallel using GNU parallel. … This is as far as I've come:
parallel -j4 --progress python preprocess*.py ::: '>' ./file{}.csv
But it just stays there without writing anything, as if waiting for some input. …
0
votes
1
answer
1k
views
Running script in parallel using xargs and cat
I want to do it in parallel, for example run 4 processes. Right now I do it with the script like this:
find . -name "*.csv" | xargs -n 1 -P 4 . … It seems like it works, but my question is: wouldn't cat mix up the inputs from 4 processes and does it really run in parallel or it waits till another process is done with cat? …
7
votes
2
answers
6k
views
How to run x instances of a script parallel?
I have script I'd always like to run 'x' instances in parallel. … I do
parallel echo ::: A B C ::: D E F
(from the doc) and it tells me
parallel: Input is read from the terminal. Only experts do this on purpose. Press CTRL-D to exit. …