2011-02-18 14:23:00 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
echo '### Test --tollef'
|
2011-02-21 01:31:30 +00:00
|
|
|
parallel -k --tollef echo -- 1 2 3 ::: a b c
|
2011-02-18 14:23:00 +00:00
|
|
|
|
|
|
|
echo '### Test --tollef --gnu'
|
2011-02-21 01:31:30 +00:00
|
|
|
parallel -k --tollef --gnu echo ::: 1 2 3 -- a b c
|
2011-02-18 14:23:00 +00:00
|
|
|
|
|
|
|
echo '### Test --gnu'
|
2011-02-21 01:31:30 +00:00
|
|
|
parallel -k --gnu echo ::: 1 2 3 -- a b c
|
|
|
|
|
|
|
|
echo "### test global config"
|
|
|
|
echo /etc/parallel/config | sudo parallel "echo --tollef > "
|
|
|
|
parallel -k echo -- 1 2 3 ::: a b c
|
|
|
|
parallel -k --gnu echo ::: 1 2 3 -- a b c
|
|
|
|
echo --gnu > ~/.parallel/config
|
|
|
|
parallel -k echo ::: 1 2 3 -- a b c
|
|
|
|
parallel -k --gnu echo ::: 1 2 3 -- a b c
|
|
|
|
sudo rm /etc/parallel/config
|
|
|
|
rm ~/.parallel/config
|