[DGD] Reboot and shutdown in kernellib or cloud-library

nikoroleva natasha.i.koroleva at gmail.com
Fri May 10 12:51:16 CEST 2019


francisco del roio <francipvb at hotmail.com> wrote:
>
> Hello,
>
> Is there a way to check if the admin has requested shutdown or reboot
> when dgd exits when coding with Kernel or Cloud libraries?
>
> I mean from a shell script.
>
Not sure about other shells, but in bash you can use $?

#!/usr/bin/env bash

../dgd/bin/dgd ./config.dgd
echo $?


More information about the DGD mailing list