lfd . pl: Using the loop with separate print for each line of @message only displays first line of index.text (multiline unix text file) is dispalyed:
Connected to ...
FIRSTLINEHERE
Connection closed by remote host.
When I send the file contents in a single print then ALL lines get diplayed on client.
map { s/\[IPADDRESS\]/$peeraddress/ } @message;
map { s/\[HOSTNAME\]/$hostname/ } @message;
print $client join("\n", @message)."\n";
FTP messenger only dispalys first line of index.text
-
- Moderator
- Posts: 1524
- Joined: 01 Oct 2008, 09:24
Re: FTP messenger only dispalys first line of index.text
This is entirely dependent on the FTP client. Some displays the lines, others don't even with the modification that you suggest. You should adjust the text in the text message file accordingly if you want it to appear all on the one line.