A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[tesh] Write self-tests in perl (we may not have cc at hand)
[simgrid.git]
/
tools
/
tesh
/
background.tesh
1
2
$ rm -rf temp_testdir_background
3
$ mkdir temp_testdir_background
4
$ cd temp_testdir_background
5
6
< use strict;
7
< sleep(2);
8
< open (FILE, "<tmp_fich") || die "Cannot open tmp_fich: $!\n";
9
<
10
< while (<FILE>) {
11
< print;
12
< }
13
< exit 0;
14
<
15
$ mkfile delayed_cat.pl
16
17
& perl delayed_cat.pl
18
> TOTO
19
20
< TOTO
21
$ mkfile tmp_fich
22
23
$ sleep 2
24
$ cd ..
25
$ rm -rf temp_testdir_background