I have a python application which starts a websocket on the port which is specified as a parameter to the python application.
I have done the passing of argument successfully through the batch(.bat) file in windows.
In windows I am passing the parameter as follows:
python server.py -p 8000
Now I need to achieve the same in ubuntu 12.04 through the bash file.
Name = My Script
Comment = Test
I put the hashbang in the python file #!/usr/bin/env python
and I also set the python file to be executable but every time I double click my .desktop file it brings up the error "There was an error launching the application".
I would like to know if it's possible in a bash script to include a python script in order to write (in the bash script) the return value of a funnction I wrote in my python program ?
my file "file.py" has a function which returns a variable value "my_value" (which represents the name of a file but anyway)
I want to create a bash script which has to be able to execute a commande lin