X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/842b8b761b8c0efdade0e9f688b22ac8ae89d965..b69c3463223ed1207861d7a9b0ec0a06064696ca:/tools/tesh2/examples/background.tesh diff --git a/tools/tesh2/examples/background.tesh b/tools/tesh2/examples/background.tesh deleted file mode 100644 index 988eba8469..0000000000 --- a/tools/tesh2/examples/background.tesh +++ /dev/null @@ -1,50 +0,0 @@ - -$ rm -rf temp_testdir -$ mkdir temp_testdir -$ cd temp_testdir - -< #include -< #include -< #include -< #include -< #include -< #include -< -< int main() { -< char buff[2048]; -< int got; -< int in; -< -< sleep(1); -< in = open("tmp_fich",O_RDONLY|O_CREAT); -< if (in == -1) { -< perror("Cannot open tmp_fich: "); -< exit(1); -< } -< while ((got = read(in,&buff,2048))>0) { -< int w = write(1,&buff,got); -< if (w<0) { -< perror("Error while writing:"); -< exit(1); -< } -< } -< if (got < 0) { -< perror("Error while reading:"); -< exit(1); -< } -< return 0; -< } -$ cat > delayed_cat.c - -$ gcc -Wall -o delayed_cat delayed_cat.c - -& ./delayed_cat -> TOTO - -< TOTO -$ cat > tmp_fich - -$ sleep 2 -$ cd .. -$ rm -rf temp_testdir -