A script is executed from the shell as ./oximeter.
The script, oximeter, has 5 commands:
python3 ~/Documents/oximeter/3211ipod.py
ls -l
pwd
cd ~/Documents/oximeter/
pwd
The python script runs as expected. I would like the script to change the directory as shown in command #4. When control is returned to the user, the directory remains unchanged.
The second pwd returns the desired directory, however when control is returned to the user, pwd indicates that the directory is not ~/Documents/oximeter.
Why is this and is there a 'stronger' command that changes the target directory for the user?
This is in Ubuntu 20.04.