Page 1 of 1

FTP messenger only dispalys first line of index.text

Posted: 15 Oct 2013, 14:31
by jvmhost
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";

Re: FTP messenger only dispalys first line of index.text

Posted: 19 Oct 2013, 21:52
by ForumAdmin
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.