I have the following script:
#!/bin/bash
if test -f "/path/pycharm.sh"; then sh ./pycharm.sh;
fi
I am trying to run pycharm.sh from a bash file and I've looked carefully to give all the permissions needed to the file. Unfortunately every time I run it I get this:
Can't open ./pycharm.sh
pycharm.sh
is in? Is that the entire error message? – terdon Apr 14 '15 at 11:59pycharm.sh
– Cajuu' Apr 14 '15 at 12:00/path/pycharm.sh
(absolute) and once./pycharm.sh
(relative). If it's the same file then the path definitions should match. – Janis Apr 14 '15 at 12:02