Révision 3e7d7308
Quoting vars
| tools/profiling/dump_node | ||
|---|---|---|
| 1 | 1 |
#! /bin/sh |
| 2 | 2 |
|
| 3 |
NODE=${1:-localhost}
|
|
| 4 |
PORT=${2:-4949}
|
|
| 3 |
NODE="${1:-localhost}"
|
|
| 4 |
PORT="${2:-4949}"
|
|
| 5 | 5 |
|
| 6 | 6 |
{
|
| 7 |
for plugin in $(echo "list" | nc $NODE $PORT | tail -n 1)
|
|
| 7 |
for plugin in $(echo "list" | nc "$NODE" "$PORT" | tail -n 1)
|
|
| 8 | 8 |
do |
| 9 | 9 |
echo "config $plugin" |
| 10 | 10 |
echo "fetch $plugin" |
| 11 | 11 |
done |
| 12 | 12 |
echo "quit" |
| 13 |
} | nc $NODE $PORT |
|
| 13 |
} | nc "$NODE" "$PORT" |
|
Formats disponibles : Unified diff