#!/bin/bash

## This is part of workshop: Advanced HPC and Data Management topics
## Autor: robert.barthel@kit.edu

## Purpose: Demonstrate parsing of assigned variables

var1="Non-exported value of var1"
export var2="Exported value of var2"
worker_sh="./08_worker_get_var.sh"

## check if $worker_sh is executable for user
echo "${0}: \$var1 = $var1" 
echo "${0}: \$var2 = $var2" 
if [ -x "${worker_sh}" ] ; then
   "${worker_sh}"
fi
