How to mix bash script with python script?
What happens if i have a python script..
#!/usr/bin/env python
with open('server_info') as f:
a, b = f
a, b = a.strip(), b.strip()
but right below it, i have a xdotool commands..
a=`xdotool search --name "ooo"`
if [[ "$a" ]]; then
xdotool windowactivate --sync $a
fi
do i add something like..
#!/usr/bin/env python
right above the bash portion of the script ?
if so what is it that i need to add ?
how do i pass the values from python portion to the bash script portion ?
No comments:
Post a Comment