Leser: 1
7 Einträge, 1 Seite |
1 2 3
my $in = "export PATH=\$PATH:."; my @cmd = qw( ssh ); my $h = start \@cmd, \$in, \$out;
1 2 3
my @in = ("-l username", "hostname", "export PATH=\$PATH:."); my @cmd = qw( ssh ); my $h = start \@cmd, \@in, \$out;
1 2 3 4 5
my $host = "hostname"; my $ssh = Net::SSH::Perl->new($host, debug => "1"); $ssh->login(); my($out, $err, $exit) = $ssh->cmd("ps ux | awk '/prozessname\.sh/ && !/awk/ {\$2}'"); $ssh->cmd("kill -9 $out");
$my var = start("ssh", "-l username", "hostname", "ps ux | awk '/prozessname\.sh/ && !/awk/ {print \$2}'");
killall -9 prozessname
Gast+2007-12-10 10:10:56--Code (perl): (dl )my @in = ("-l username", "hostname", "export PATH=\$PATH:.");
7 Einträge, 1 Seite |