Hi,
Cast-o-matic allows rebooting on success. I suppose it's /post job:
======================== #!/bin/sh
if [ $1 = 0 ] ; then exec reboot -f; else echo "Error. Not rebooting";fi ========================
But I'm not sure I understand $1 Does it mean /post is launched with $? udp-receiver return as first parameter ($1)?
Regards.
Stephane wrote:
Hi,
Cast-o-matic allows rebooting on success. I suppose it's /post job:
======================== #!/bin/sh
if [ $1 = 0 ] ; then exec reboot -f; else echo "Error. Not rebooting";fi
But I'm not sure I understand $1 Does it mean /post is launched with $? udp-receiver return as first parameter ($1)?
Exactly. $1 will contain the exit status of udp-receiver or udp-sender.
Regards.
Alain