[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: SOLVED Re: Cannot rum multiple command on remote machine via SSH



On Wed, Feb 08, 2023 at 09:31:00AM -0500, Stefan Monnier wrote:
> >> $ cat opt/bin/hibernate.sh
> >> mate-screensaver-command -l 	# Activates screensaver and locks
> >>                                   the screen
> >> sudo systemctl hybrid-sleep	# Hibernate and suspend the system. This
> >>                                   will trigger activation of
> >>                                   the special target unit
> >>                                   hybrid-sleep.target.
> [...]
> > So it's not clear which command is causing the ssh client to hang.
> 
> Maybe it's simply that `hybrid-sleep` is fast enough to stop the network
> before the SSH command completes?

Or perhaps it is synchronous and waits until successful ;-)

Cheers
-- 
t

Attachment: signature.asc
Description: PGP signature


Reply to: