Bugzilla – Attachment 1371 Details for
Bug 1263
connection sharing often freezes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
script to call scp repeatedly as a ControlMaster slave
sshtester.pl (text/plain), 1.11 KB, created by
Alexander Staubo
on 2007-10-26 10:58:45 AEST
(
hide
)
Description:
script to call scp repeatedly as a ControlMaster slave
Filename:
MIME Type:
Creator:
Alexander Staubo
Created:
2007-10-26 10:58:45 AEST
Size:
1.11 KB
patch
obsolete
>#!/usr/bin/env perl > >use strict; > ># ---------------------------------------------------------------------- ># tweak me ># ---------------------------------------------------------------------- > >my $SCP=$ENV{SCP} || "scp"; >my $SSH=$ENV{SSH} || "ssh"; > >my $DEFAULT_SERVER='192.168.0.2'; >my $DEFAULT_STOP=300; > ># ---------------------------------------------------------------------- ># read command line arguments ># ---------------------------------------------------------------------- > >my $server; >my $stop; > >if ($#ARGV < 0) { > $server = $DEFAULT_SERVER; >} else { > $server = $ARGV[0]; > shift; >} > >if ($#ARGV < 0) { > $stop = $DEFAULT_STOP; >} else { > $stop = $ARGV[0]; > shift; >} > ># ---------------------------------------------------------------------- ># run control master and scp a file over and over again ># ---------------------------------------------------------------------- > >my $control_path='/tmp/'.$server; >system "$SSH $server -S $control_path -N -f -M"; >for (my $n=0;$n<$stop;$n++) { > printf "$n\n"; > system "$SCP -q -o ControlPath=$control_path $server:foo /tmp/sshtester"; >} >system "$SSH $server -S $control_path -O exit";
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1263
:
1209
|
1210
|
1230
|
1231
| 1371