Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
tesh: better handling of very large sorted output
[simgrid.git] / tools / tesh / generate_tesh
1 #!/bin/sh
2 # Generate a tesh file from a given command (simple case).
3
4 command="$1"
5 output=$(sh -c "$command" 2>&1)
6 return=$?
7
8 tesh="#! ./tesh
9
10 ! expect return $return
11 $ $command
12 $(echo "$output" | sed 's/^/> /' )
13 "
14
15 echo "$tesh"
16 echo "$tesh" | tesh 1>&2