Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That is not the same use case.

You could use this to get the current location of the script being run (not the location where it runs).

   readlink -f $0


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: