pct exec

  1. R

    [SOLVED] problem with pct enter and run a script with "#!/usr/bin/env bash" - not working

    Hello everybody, I connect to some LXC Container with pct enter ID. After this I have a script like this here: #!/usr/bin/env bash export SOME_ENV_PATH="path/to/file.env" read -p "Please give your name:" Name If i comment out the line, the script is working fine export...
  2. Proxygen

    Escape Double Quotes Inside pct exec "cmd"

    inside the container $ bash /home/ubuntu/scripts/logsigmonitor.sh 1 | while read LOGLINE; do echo "${LOGLINE}"; done continuously outputs the desired (filtered) log messages to the terminal. but on the host /usr/sbin/pct exec 107 -- bash -c "bash /home/ubuntu/scripts/logsigmonitor.sh 1 |...
  3. D

    pct exec and daemonizing

    I wish to launch a script on a collection of containers. pct exec seems to do what I want. Except I want to background my script and have the pct exec finish immediately. I tried just adding an & (ampersand) but when the pct exec finishes, it terminates the backgrounded script. I have now tried...
  4. J

    Startup/ Init Script / Bootstrap provisioning on lxc

    Hi All, I feel like I'm missing something blatantly obvious, but I can't seem to find it. I would like to automate the process of creating a Centos LXC, boostrapping it, then running the provisioning. The hang up is the Centos 7 LXC doesn't have openssh-server installed by default. Which I...

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!