$ssh_ref = \$ssh; async { print "Upgrading firmware, this will take about 3 minutes.\n"; my $chan = $$ssh_ref->channel(); $chan->exec("/sbin/fwupdate -m\n"); $chan->close; }->detach;