i am usaing a cronjob to run a database backup script.
i added the line
to the beggining of the script so the output .sql file stays in the corrent directory.Code:cd /path/to/myscript.sh
this works but is not practical... i would like to have a script that whatever i put it would send the output to the current path...
so basicaly i need to know.
how do i get the current path? should be some environment varible right?