I want to run a bash script to access two terminal tabs, each run cd "folder"
, then "npm run start"
, as below:
#!/bin/bash
sudo mysql -u root -h localhost
PATH=/var/lib/cloud9/autorun/loginbrillo
tmux new-session -d -s session1 "cd $PATH/backend && npm run start" &
tmux new-session -d -s sessionn1 "cd $PATH/frontend && npm run start" &
chromium-browser http://192.168.7.2:4001/
When I run it, I get :
tmux: command not found
npm: command not found
chromium-browser: command not found
How to fix it please ?
PATH
- which is why no programs are being found. Just change the variablePATH
to something else likecloudpath