Hi,
I am trying to run a command within a container whenever the container starts, but I am not having success trying several different methods.
Two of the methods are using rc.local and crontab, but neither of these work.
I am simply trying to run
.
To get this to work with cron, I tried inputting
and also tried putting that line in a script and called the script from within crontab.
For rc.local, I created the file and made it executable, as well as placed #!/bin/sh at the top.
Does anyone know why I cannot get either of these to work?
I am trying to run a command within a container whenever the container starts, but I am not having success trying several different methods.
Two of the methods are using rc.local and crontab, but neither of these work.
I am simply trying to run
Code:
expressvpn connect
To get this to work with cron, I tried inputting
Code:
@reboot expressvpn connect
For rc.local, I created the file and made it executable, as well as placed #!/bin/sh at the top.
Does anyone know why I cannot get either of these to work?