Menu

#4 Linux shell script enhancement - start from everywhere

open
nobody
None
2020-06-04
2020-06-04
No

Hi, i want to suggest an addition to the OpenRadar.sh script:

#!/bin/sh
cd "$(dirname "$(readlink -f "$0")")"
java -jar OpenRadar.jar
cd -

This way one can just drop a symlink to /usr/bin and it will get called from the correct path.

Discussion


Log in to post a comment.