in reply to Error calling system(telnet x.x.x.x)

Try:
system('telnet', 'x.x.x.x');

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