From dce6a51af9dafd2e2599e3618c6dfa56007c37da Mon Sep 17 00:00:00 2001 From: tpollina Date: Tue, 10 Dec 2019 15:24:23 -0800 Subject: [PATCH] Create pipeline.py --- pipeline.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 pipeline.py diff --git a/pipeline.py b/pipeline.py new file mode 100644 index 0000000..75e6e81 --- /dev/null +++ b/pipeline.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python + +import sys + +#get the value of the first parameter which is for example an integer +value = int(sys.argv[1]) + +#get the value of the first parameter which is for example a string +text = str(sys.argv[2]) + +#Execute a python cmd with the previous defined variables from php