git://git.onelab.eu
/
nepi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleaning up examples folder
[nepi.git]
/
examples
/
linux
/
vlc_streaming.py
diff --git
a/examples/linux/vlc_streaming.py
b/examples/linux/vlc_streaming.py
index
6d01a9b
..
49e2e7e
100644
(file)
--- a/
examples/linux/vlc_streaming.py
+++ b/
examples/linux/vlc_streaming.py
@@
-17,11
+17,10
@@
#
# Author: Alina Quereilhac <alina.quereilhac@inria.fr>
#
#
# Author: Alina Quereilhac <alina.quereilhac@inria.fr>
#
-# Example of how to run this experiment (replace with your
credentials
):
+# Example of how to run this experiment (replace with your
information
):
#
# $ cd <path-to-nepi>
#
# $ cd <path-to-nepi>
-# $ PYTHONPATH=$PYTHONPATH:~/repos/nepi/src python examples/linux/vlc_streaming.py -u inria_nepi -i ~/.ssh/id_rsa_planetlab -a planetlab1.u-strasbg.fr -b planetlab1.utt.fr | vlc -
-
+# python examples/linux/vlc_streaming.py -a <hostname1> -b <hostname2> -u <username> -i <ssh-key>
from nepi.execution.ec import ExperimentController
from nepi.execution.resource import ResourceState, ResourceAction
from nepi.execution.ec import ExperimentController
from nepi.execution.resource import ResourceState, ResourceAction
@@
-115,8
+114,12
@@
ec.deploy()
# Wait until the ccncat is finished
ec.wait_finished([server])
# Wait until the ccncat is finished
ec.wait_finished([server])
-print ec.trace(client, "VIDEO")
+video = ec.trace(client, "VIDEO")
+f = open("video.ts", "w")
+f.write(video)
+f.close()
ec.shutdown()
ec.shutdown()
+print "Streamed VIDEO stored localy at video.ts"