Hello dear Salva,
Answer changed
in the case of removing the extra quotes I get this output:
best regards, Thomas
PS:
the part of code without extra quotes now looks that way:
$_sftp = Net::SFTP::Foreign->new(
host => $ftpuser->{ server },
user => $ftpuser->{ benutzer },
password => $ftpuser->{ pass },
more => [qw(-o StrictHostKeyChecking=no)],
);
PS:
can I put long texts like this in another format?
Content-type: text/html
#18050 1428591435.00000 new: This is Net::SFTP::Foreign 1.77
#18050 1428591435.00000 new: Loaded from /usr/local/share/perl/5.10.1/
+Net/SFTP/Foreign.pm
#18050 1428591435.00000 new: Running on Perl v5.10.1 for linux
#18050 1428591435.00000 new: debug set to -1
#18050 1428591435.00000 new: ~0 is 18446744073709551615
#18050 1428591435.00000 new: Using backend Net::SFTP::Foreign::Backend
+::Unix 1.76_03
#18050 1428591435.00000 _init_transport: ssh cmd: ssh -o NumberOfPassw
+ordPrompts=1 -o PreferredAuthentications=keyboard-interactive,pass
+
+ word -l innosystems -o StrictHostKeyChec
+king=no 212.77.189.194 -s sftp
#18050 1428591435.00000 _init_transport: starting password authenticat
+ion
#18050 1428591435.00000 _init_transport: waiting for data from the pty
+ to become available
Warning: Permanently added '212.77.189.194' (RSA) to the list of known
+ hosts.
#18050 1428591435.00000 _init_transport: 39 bytes readed from pty:
69 6e 6e 6f 73 79 73 74 65 6d 73 40 32 31 32 2e 37 37 2e 31 38 39 2e 3
+1 39 34 27 73 20 70 61 73 | innosystems@212.77.189.194's pas
73 77 6f 72 64 3a 20
+ | sword:
#18050 1428591435.00000 _init_transport: looking for user/password pro
+mpt
#18050 1428591435.00000 _init_transport: matching against (?i-xsm:(use
+r|name|login)?[:?]\s*$)
#18050 1428591435.00000 _init_transport: sending password
#18050 1428591435.00000 _init_transport: waiting for data from the pty
+ to become available
#18050 1428591435.00000 _init_transport: 2 bytes readed from pty:
0d 0a
+ | ..
#18050 1428591435.00000 _init_transport: looking for password ok
#18050 1428591435.00000 _init_transport: password authentication done
#18050 1428591435.00000 _queue_msg: queueing msg len: 5, code:1, id:3
+... [1]
00 00 00 05 01 00 00 00 03
+ | .........
#18050 1428591435.00000 _get_msg: waiting for message... [1]
#18050 1428591435.00000 _do_io: _do_io connected: 1
#18050 1428591435.00000 _do_io: _do_io select(-,-,-, undef)
#18050 1428591435.00000 _do_io: _do_io write queue: 9, syswrite: 9, ma
+x: 65536, $!:
00 00 00 05 01 00 00 00 03
+ | .........
#18050 1428591435.00000 _do_io: _do_io select(-,-,-, undef)
#18050 1428591435.00000 _do_io: _do_io read sysread: 128, total read:
+128, $!:
00 00 00 7c 02 00 00 00 03 00 00 00 18 70 6f 73 69 78 2d 72 65 6e 61 6
+d 65 40 6f 70 65 6e 73 73 | ...|.........posix-rename@openss
68 2e 63 6f 6d 00 00 00 01 31 00 00 00 13 73 74 61 74 76 66 73 40 6f 7
+0 65 6e 73 73 68 2e 63 6f | h.com....1....statvfs@openssh.co
6d 00 00 00 01 32 00 00 00 14 66 73 74 61 74 76 66 73 40 6f 70 65 6e 7
+3 73 68 2e 63 6f 6d 00 00 | m....2....fstatvfs@openssh.com..
00 01 32 00 00 00 14 68 61 72 64 6c 69 6e 6b 40 6f 70 65 6e 73 73 68 2
+e 63 6f 6d 00 00 00 01 31 | ..2....hardlink@openssh.com....1
#18050 1428591435.00000 _get_msg: got it!, len:124, code:2, id:-, stat
+us: -
02 00 00 00 03 00 00 00 18 70 6f 73 69 78 2d 72 65 6e 61 6d 65 40 6f 7
+0 65 6e 73 73 68 2e 63 6f | .........posix-rename@openssh.co
6d 00 00 00 01 31 00 00 00 13 73 74 61 74 76 66 73 40 6f 70 65 6e 73 7
+3 68 2e 63 6f 6d 00 00 00 | m....1....statvfs@openssh.com...
01 32 00 00 00 14 66 73 74 61 74 76 66 73 40 6f 70 65 6e 73 73 68 2e 6
+3 6f 6d 00 00 00 01 32 00 | .2....fstatvfs@openssh.com....2.
00 00 14 68 61 72 64 6c 69 6e 6b 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 0
+0 00 00 01 31 | ...hardlink@openssh.com....1
#18050 1428591435.00000 _rel2abs: '/home/innosystems/in/doppelt-neu.tx
+t' --> '/home/innosystems/in/doppelt-neu.txt'
#18050 1428591435.00000 put: local file size is 555
#18050 1428591435.00000 _rel2abs: '/home/innosystems/in/doppelt-neu.tx
+t' --> '/home/innosystems/in/doppelt-neu.txt'
#18050 1428591435.00000 _queue_msg: queueing msg len: 57, code:3, id:0
+ ... [1]
00 00 00 39 03 00 00 00 00 00 00 00 24 2f 68 6f 6d 65 2f 69 6e 6e 6f 7
+3 79 73 74 65 6d 73 2f 69 | ...9........$/home/innosystems/i
6e 2f 64 6f 70 70 65 6c 74 2d 6e 65 75 2e 74 78 74 00 00 00 1a 00 00 0
+0 04 00 00 01 a4 | n/doppelt-neu.txt............
#18050 1428591435.00000 _get_msg: waiting for message... [1]
#18050 1428591435.00000 _do_io: _do_io connected: 1
#18050 1428591435.00000 _do_io: _do_io select(-,-,-, undef)
#18050 1428591435.00000 _do_io: _do_io write queue: 61, syswrite: 61,
+max: 65536, $!:
00 00 00 39 03 00 00 00 00 00 00 00 24 2f 68 6f 6d 65 2f 69 6e 6e 6f 7
+3 79 73 74 65 6d 73 2f 69 | ...9........$/home/innosystems/i
6e 2f 64 6f 70 70 65 6c 74 2d 6e 65 75 2e 74 78 74 00 00 00 1a 00 00 0
+0 04 00 00 01 a4 | n/doppelt-neu.txt............
#18050 1428591435.00000 _do_io: _do_io select(-,-,-, undef)
#18050 1428591435.00000 _do_io: _do_io read sysread: 17, total read: 1
+7, $!:
00 00 00 0d 66 00 00 00 00 00 00 00 04 00 00 00 00
+ | ....f............
#18050 1428591435.00000 _get_msg: got it!, len:13, code:102, id:0, sta
+tus: -
66 00 00 00 00 00 00 00 04 00 00 00 00
+ | f............
#18050 1428591435.00000 open: new remote file '/home/innosystems/in/do
+ppelt-neu.txt' open, rid:
00 00 00 00
+ | ....
#18050 1428591435.00000 _queue_msg: queueing msg len: 21, code:10, id:
+1 ... [1]
00 00 00 15 0a 00 00 00 01 00 00 00 04 00 00 00 00 00 00 00 04 00 00 0
+1 a4 | .........................
#18050 1428591435.00000 _get_msg: waiting for message... [1]
#18050 1428591435.00000 _do_io: _do_io connected: 1
#18050 1428591435.00000 _do_io: _do_io select(-,-,-, undef)
#18050 1428591435.00000 _do_io: _do_io write queue: 25, syswrite: 25,
+max: 65536, $!:
00 00 00 15 0a 00 00 00 01 00 00 00 04 00 00 00 00 00 00 00 04 00 00 0
+1 a4 | .........................
#18050 1428591435.00000 _do_io: _do_io select(-,-,-, undef)
#18050 1428591435.00000 _do_io: _do_io read sysread: 28, total read: 2
+8, $!:
00 00 00 18 65 00 00 00 01 00 00 00 00 00 00 00 07 53 75 63 63 65 73 7
+3 00 00 00 00 | ....e............Success....
#18050 1428591435.00000 _get_msg: got it!, len:24, code:101, id:1, sta
+tus: 0
65 00 00 00 01 00 00 00 00 00 00 00 07 53 75 63 63 65 73 73 00 00 00 0
+0 | e............Success....
#18050 1428591435.00000 put: reading block at offset 0 block_size: 327
+68
#18050 1428591435.00000 put: block read, size: 555
#18050 1428591435.00000 put: writing block at offset 0, length 555
#18050 1428591435.00000 _queue_msg: queueing msg len: 580, code:6, id:
+2 ... [1]
00 00 02 44 06 00 00 00 02 00 00 00 04 00 00 00 00 00 00 00 00 00 00 0
+0 00 00 00 02 2b 41 6e 72 | ...D........................+Anr
65 64 65 0a 41 6e 7a 61 68 6c 20 56 6f 72 73 63 68 e4 64 65 6e 0a 42 4
+c 5a 0a 42 61 6e 6b 6b 6f | ede.Anzahl Vorsch.den.BLZ.Bankko
6e 74 6f 6e 75 6d 6d 65 72 0a 42 65 72 65 63 68 6e 75 6e 67 73 65 69 6
+e 68 65 69 74 0a 44 61 74 | ntonummer.Berechnungseinheit.Dat
75 6d 20 41 75 73 68 e4 6e 64 69 67 75 6e 67 20 55 6e 74 65 72 6c 61 6
+7 65 6e 0a 47 65 66 61 68 | um Aush.ndigung Unterlagen.Gefah
72 65 6e 6b 6f 6d 62 69 0a 48 61 66 74 70 66 6c 69 63 68 74 6b 6f 6d 6
+2 69 6e 75 6d 6d 65 72 0a | renkombi.Haftpflichtkombinummer.
48 61 75 70 74 77 61 67 6e 69 73 61 72 74 2f 53 74 61 74 69 73 74 69 7
+3 63 68 65 73 20 4b 6f 6e | Hauptwagnisart/Statistisches Kon
74 6f 0a 49 6e 6b 61 73 73 6f 61 72 74 0a 49 6e 74 65 72 6c 6c 6f 79 6
+4 20 56 65 72 6d 69 74 74 | to.Inkassoart.Interlloyd Vermitt
6c 65 72 6e 75 6d 6d 65 72 0a 4d 65 6e 67 65 0a 4d 65 6e 67 65 6e 73 6
+3 68 6c fc 73 73 65 6c 0a | lernummer.Menge.Mengenschl.ssel.
4e 61 63 68 6e 61 6d 65 20 31 0a 4e 61 63 68 6e 61 6d 65 20 32 0a 4f 7
+2 74 0a 50 4c 5a 0a 52 69 | Nachname 1.Nachname 2.Ort.PLZ.Ri
73 69 6b 6f 6f 72 74 6e 75 6d 6d 65 72 0a 53 63 68 61 64 65 6e 61 75 6
+6 77 61 6e 64 20 56 6f 72 | sikoortnummer.Schadenaufwand Vor
73 63 68 e4 64 65 6e 0a 53 63 68 61 64 65 6e 67 72 75 6e 64 6a 61 68 7
+2 20 28 6e 75 72 20 62 65 | sch.den.Schadengrundjahr (nur be
69 20 62 65 73 74 69 6d 6d 74 65 6e 20 53 70 61 72 74 65 6e 29 0a 53 7
+0 61 72 74 65 0a 53 74 72 | i bestimmten Sparten).Sparte.Str
61 df 65 20 69 6e 6b 6c 2e 20 48 61 75 73 6e 75 6d 6d 65 72 0a 55 6e 7
+4 65 72 77 61 67 6e 69 73 | a.e inkl. Hausnummer.Unterwagnis
61 72 74 0a 56 4d 2d 52 65 66 65 72 65 6e 7a 2f 2d 56 65 72 74 72 61 6
+7 73 6e 75 6d 6d 65 72 0a | art.VM-Referenz/-Vertragsnummer.
56 65 72 74 72 61 67 73 61 62 6c 61 75 66 0a 56 65 72 74 72 61 67 73 6
+2 65 67 69 6e 6e 0a 56 65 | Vertragsablauf.Vertragsbeginn.Ve
72 74 72 61 67 73 6e 75 6d 6d 65 72 20 56 6f 72 76 65 72 73 69 63 68 6
+5 72 65 72 0a 56 65 72 74 | rtragsnummer Vorversicherer.Vert
72 61 67 73 73 70 61 72 74 65 0a 56 6f 72 6e 61 6d 65 0a 56 6f 72 76 6
+5 72 73 69 63 68 65 72 65 | ragssparte.Vorname.Vorversichere
72 0a 57 61 67 6e 69 73 61 72 74 0a 5a 61 68 6c 77 65 69 73 65 0a 61 6
+2 77 2e 20 4b 6f 6e 74 6f | r.Wagnisart.Zahlweise.abw. Konto
69 6e 68 61 62 65 72 0a
+ | inhaber.
#18050 1428591435.00000 _do_io: _do_io connected: 1
#18050 1428591435.00000 _do_io: _do_io select(-,-,-, 0)
#18050 1428591435.00000 _do_io: _do_io write queue: 584, syswrite: 584
+, max: 65536, $!:
00 00 02 44 06 00 00 00 02 00 00 00 04 00 00 00 00 00 00 00 00 00 00 0
+0 00 00 00 02 2b 41 6e 72 | ...D........................+Anr
65 64 65 0a 41 6e 7a 61 68 6c 20 56 6f 72 73 63 68 e4 64 65 6e 0a 42 4
+c 5a 0a 42 61 6e 6b 6b 6f | ede.Anzahl Vorsch.den.BLZ.Bankko
6e 74 6f 6e 75 6d 6d 65 72 0a 42 65 72 65 63 68 6e 75 6e 67 73 65 69 6
+e 68 65 69 74 0a 44 61 74 | ntonummer.Berechnungseinheit.Dat
75 6d 20 41 75 73 68 e4 6e 64 69 67 75 6e 67 20 55 6e 74 65 72 6c 61 6
+7 65 6e 0a 47 65 66 61 68 | um Aush.ndigung Unterlagen.Gefah
72 65 6e 6b 6f 6d 62 69 0a 48 61 66 74 70 66 6c 69 63 68 74 6b 6f 6d 6
+2 69 6e 75 6d 6d 65 72 0a | renkombi.Haftpflichtkombinummer.
48 61 75 70 74 77 61 67 6e 69 73 61 72 74 2f 53 74 61 74 69 73 74 69 7
+3 63 68 65 73 20 4b 6f 6e | Hauptwagnisart/Statistisches Kon
74 6f 0a 49 6e 6b 61 73 73 6f 61 72 74 0a 49 6e 74 65 72 6c 6c 6f 79 6
+4 20 56 65 72 6d 69 74 74 | to.Inkassoart.Interlloyd Vermitt
6c 65 72 6e 75 6d 6d 65 72 0a 4d 65 6e 67 65 0a 4d 65 6e 67 65 6e 73 6
+3 68 6c fc 73 73 65 6c 0a | lernummer.Menge.Mengenschl.ssel.
4e 61 63 68 6e 61 6d 65 20 31 0a 4e 61 63 68 6e 61 6d 65 20 32 0a 4f 7
+2 74 0a 50 4c 5a 0a 52 69 | Nachname 1.Nachname 2.Ort.PLZ.Ri
73 69 6b 6f 6f 72 74 6e 75 6d 6d 65 72 0a 53 63 68 61 64 65 6e 61 75 6
+6 77 61 6e 64 20 56 6f 72 | sikoortnummer.Schadenaufwand Vor
73 63 68 e4 64 65 6e 0a 53 63 68 61 64 65 6e 67 72 75 6e 64 6a 61 68 7
+2 20 28 6e 75 72 20 62 65 | sch.den.Schadengrundjahr (nur be
69 20 62 65 73 74 69 6d 6d 74 65 6e 20 53 70 61 72 74 65 6e 29 0a 53 7
+0 61 72 74 65 0a 53 74 72 | i bestimmten Sparten).Sparte.Str
61 df 65 20 69 6e 6b 6c 2e 20 48 61 75 73 6e 75 6d 6d 65 72 0a 55 6e 7
+4 65 72 77 61 67 6e 69 73 | a.e inkl. Hausnummer.Unterwagnis
61 72 74 0a 56 4d 2d 52 65 66 65 72 65 6e 7a 2f 2d 56 65 72 74 72 61 6
+7 73 6e 75 6d 6d 65 72 0a | art.VM-Referenz/-Vertragsnummer.
56 65 72 74 72 61 67 73 61 62 6c 61 75 66 0a 56 65 72 74 72 61 67 73 6
+2 65 67 69 6e 6e 0a 56 65 | Vertragsablauf.Vertragsbeginn.Ve
72 74 72 61 67 73 6e 75 6d 6d 65 72 20 56 6f 72 76 65 72 73 69 63 68 6
+5 72 65 72 0a 56 65 72 74 | rtragsnummer Vorversicherer.Vert
72 61 67 73 73 70 61 72 74 65 0a 56 6f 72 6e 61 6d 65 0a 56 6f 72 76 6
+5 72 73 69 63 68 65 72 65 | ragssparte.Vorname.Vorversichere
72 0a 57 61 67 6e 69 73 61 72 74 0a 5a 61 68 6c 77 65 69 73 65 0a 61 6
+2 77 2e 20 4b 6f 6e 74 6f | r.Wagnisart.Zahlweise.abw. Konto
69 6e 68 61 62 65 72 0a
+ | inhaber.
#18050 1428591435.00000 _do_io: _do_io select(-,-,-, 0)
#18050 1428591435.00000 _do_io: _do_io select failed:
#18050 1428591435.00000 put: reading block at offset 555 block_size: 3
+2768
#18050 1428591435.00000 _get_msg: waiting for message... [1]
#18050 1428591435.00000 _do_io: _do_io connected: 1
#18050 1428591435.00000 _do_io: _do_io select(-,-,-, undef)
#18050 1428591435.00000 _do_io: _do_io read sysread: 28, total read: 2
+8, $!:
00 00 00 18 65 00 00 00 02 00 00 00 00 00 00 00 07 53 75 63 63 65 73 7
+3 00 00 00 00 | ....e............Success....
#18050 1428591435.00000 _get_msg: got it!, len:24, code:101, id:2, sta
+tus: 0
65 00 00 00 02 00 00 00 00 00 00 00 07 53 75 63 63 65 73 73 00 00 00 0
+0 | e............Success....
#18050 1428591435.00000 _queue_msg: queueing msg len: 13, code:4, id:3
+ ... [1]
00 00 00 0d 04 00 00 00 03 00 00 00 04 00 00 00 00
+ | .................
#18050 1428591435.00000 _get_msg: waiting for message... [1]
#18050 1428591435.00000 _do_io: _do_io connected: 1
#18050 1428591435.00000 _do_io: _do_io select(-,-,-, undef)
#18050 1428591435.00000 _do_io: _do_io write queue: 17, syswrite: 17,
+max: 65536, $!:
00 00 00 0d 04 00 00 00 03 00 00 00 04 00 00 00 00
+ | .................
#18050 1428591435.00000 _do_io: _do_io select(-,-,-, undef)
#18050 1428591435.00000 _do_io: _do_io read sysread: 28, total read: 2
+8, $!:
00 00 00 18 65 00 00 00 03 00 00 00 00 00 00 00 07 53 75 63 63 65 73 7
+3 00 00 00 00 | ....e............Success....
#18050 1428591435.00000 _get_msg: got it!, len:24, code:101, id:3, sta
+tus: 0
65 00 00 00 03 00 00 00 00 00 00 00 07 53 75 63 63 65 73 73 00 00 00 0
+0 | e............Success....
#18050 1428591435.00000 _close: closing file handle, return: 1, rid:
00 00 00 00
+ | ....
#18050 1428591435.00000 _rel2abs: '/home/innosystems/in/doppelt-neu.tx
+t' --> '/home/innosystems/in/doppelt-neu.txt'
#18050 1428591435.00000 _queue_msg: queueing msg len: 57, code:9, id:4
+ ... [1]
00 00 00 39 09 00 00 00 04 00 00 00 24 2f 68 6f 6d 65 2f 69 6e 6e 6f 7
+3 79 73 74 65 6d 73 2f 69 | ...9........$/home/innosystems/i
6e 2f 64 6f 70 70 65 6c 74 2d 6e 65 75 2e 74 78 74 00 00 00 08 55 26 5
+c fc 53 6b 1d fc | n/doppelt-neu.txt....U&\.Sk..
#18050 1428591435.00000 _get_msg: waiting for message... [1]
#18050 1428591435.00000 _do_io: _do_io connected: 1
#18050 1428591435.00000 _do_io: _do_io select(-,-,-, undef)
#18050 1428591435.00000 _do_io: _do_io write queue: 61, syswrite: 61,
+max: 65536, $!:
00 00 00 39 09 00 00 00 04 00 00 00 24 2f 68 6f 6d 65 2f 69 6e 6e 6f 7
+3 79 73 74 65 6d 73 2f 69 | ...9........$/home/innosystems/i
6e 2f 64 6f 70 70 65 6c 74 2d 6e 65 75 2e 74 78 74 00 00 00 08 55 26 5
+c fc 53 6b 1d fc | n/doppelt-neu.txt....U&\.Sk..
#18050 1428591435.00000 _do_io: _do_io select(-,-,-, undef)
#18050 1428591435.00000 _do_io: _do_io read sysread: 28, total read: 2
+8, $!:
00 00 00 18 65 00 00 00 04 00 00 00 00 00 00 00 07 53 75 63 63 65 73 7
+3 00 00 00 00 | ....e............Success....
#18050 1428591435.00000 _get_msg: got it!, len:24, code:101, id:4, sta
+tus: 0
65 00 00 00 04 00 00 00 00 00 00 00 07 53 75 63 63 65 73 73 00 00 00 0
+0 | e............Success....
#18050 1428591435.00000 DESTROY: Net::SFTP::Foreign::FileHandle=GLOB(0
+x1f6d740)->DESTROY called (sftp: <undef>)
#18050 1428591435.00000 DESTROY: Net::SFTP::Foreign=HASH(0x1e0b388)->D
+ESTROY called (current pid: 18050, disconnect_by_pid: )
#18050 1428591435.00000 disconnect: Net::SFTP::Foreign=HASH(0x1e0b388)
+->disconnect called (ssh pid: 18051)
#18050 1428591435.00000 _conn_lost: _conn_lost
#18050 1428591435.00000 _set_status: _set_status code: 7, str: Connect
+ion lost
#18050 1428591435.00000 _set_error: _set_err code: 37, str: Connection
+ to remote server is broken
#18050 1428591435.00000 disconnect: starting dirty cleanup of process
+18051
#18050 1428591435.00000 disconnect: killing process 18051 with signal
+0
#18050 1428591435.00000 disconnect: waitpid returned 18051
#18050 1428591435.00000 disconnect: process 18051 reaped
|