I have a couple of commands that need to be run from root
cd FolderName
sudo su
export VARIABLE_NAME=120
. install/setup.bash
ros2 run node node
I tried to create a script from these commands, but after the sudo su
command, the script stops.
How can I run this set of commands under the root bash script?