How can I use $(pwd) in a bash script run via crontab?

Subscribers:
4,110
Published on ● Video Link: https://www.youtube.com/watch?v=0kbnvFZzvqA



Duration: 3:50
5 views
0


How can I use $(pwd) in a bash script run via crontab?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!

(unix.stackexchange.com/users/332937/matthew-wai)Matthew Wai |
(unix.stackexchange.com/users/22565/st%c3%a9phane-chazelas)Stéphane Chazelas |
(unix.stackexchange.com/users/420446/white-owl)White Owl |
(unix.stackexchange.com/users/332937/matthew-wai)Matthew Wai |
A special thanks goes out to the (https://unix.stackexchange.com/questions/725409/how-can-i-use-pwd-in-a-bash-script-run-via-crontab)Stackexchange community |

I wish you all a wonderful day! Stay safe :)

shell-script cron bash







Tags:
shell-script
cron
bash