I have a below command which I have to run manually each time whenever the Ubuntu
machine starts or reboots.
ngrok start --all
This command can only be run without sudo
. If I run it as sudo ngrok start --all
, it gives error. Due to this I am not able to create script which I can run as systemd
service, so that the service automatically starts on every boot and executes the script and the command starts.
I have also tried crontab
by adding below line to sudo crontab -e
but it also didn't worked.
@reboot ngrok start --all
How can I run above command without sudo
on startup of Ubuntu. Can anyone please help. Thanks