Page 1 of 1

PXE client script autorun

Posted: 01 Oct 2016, 16:52
by akanuteh
I am working on a pxe solution but I want a script to run on the scripts as soon as they are booted. I have the files in /rootcopy and I can manually run them but I want them to run automatically.

Re: PXE client script autorun

Posted: 01 Oct 2016, 19:01
by Bogomips
Welcome to Porteus.

Make the script to run scripts executable, then use boot parameter (cheatcode) cliexec=/Path/to/<script to run scripts>

Re: PXE client script autorun

Posted: 02 Oct 2016, 21:22
by akanuteh
I tried this but the application will not run in the PXE client. I can manually run the script from /burnintest/start.sh but it does not from /mnt/sda1/boot/syslinux/porteus.cfg.

This is the line I added cliexec=/burnintest/start.sh

I want the script to run after the desktop environment is loaded.

Thanks

Re: PXE client script autorun

Posted: 02 Oct 2016, 22:09
by brokenman
Make sure:
1) The script exists on the client
2) The script is executable

Use guiexec= instead of cliexec=