FTP messenger only dispalys first line of index.text

Post Reply
jvmhost
Junior Member
Posts: 3
Joined: 03 Apr 2013, 08:36

FTP messenger only dispalys first line of index.text

Post 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";
ForumAdmin
Moderator
Posts: 1523
Joined: 01 Oct 2008, 09:24

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

Post 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.
Post Reply