To pass a string to python script using Linux/Unix Script parameters from datasource
Hello,
We have a python program which retrieve the customer send/receive details using a customer name, and we are using upload script option (Linux/Unix Script field) to execute the python program and its parameters are passing through a simple shellscript as below, Parameters we are trying to pass are Customer name and passcode
###Name of the shellscript: cus_inprocess.sh
#/bin/bash
python /usr/local/logicmonitor/agent/local/bin//sps/cust_inprocess_rpi.py $@
We are able to pass the customer name if it is a single word i.e SPU but if we try to pass the customer name with space inbetween i.e "SPU UPS" its not working. we have tried with Underscore inbetween i.e "SPU_UPS" its working, but we think underscore also passing as a value and not indicating space between the words while passing to the python script.
Could someone please provide a solution for passing the customer name with space as a parameter to the script. PFA