perl-phpのsshコマンドでApacheサーバを再起動しようとしています。 以下は試したコードです。 PuTTYを介して動作します。私はブラウザを実行しても、それは行で実行されませんが:$output = $ssh->exec("systemctl status apache2"); use Net::SSH::Expect;
my $ssh = Net::SSH::Expect->new
Javaのリモートサーバーで4つのコマンドを実行しようとしています。コマンドは、輸出を伴うので、私は1つのコマンドにそれらを一緒に連鎖してきました: rm -f nohup.out && export <a few similar commands> && nohup #here I execute a
startup script#>nohup.out >nohup.out 2>nohup.e