in reply to How to append the remote file by using Net::Telnet module

Hrm, probably the very best way to append that file is $telnet->cmd("adduser -m $username");.

Short of that, probably $telnet->cmd("echo something:something:something >> $filename"); would do the trick... But, of course, you'd first m/^username:/ in the first for() loop to see if it's there.

-Paul

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.