Jump to content
Sign in to follow this  
ibnusina

Multiple Telnet

Recommended Posts

Wa'alaikumussalam Warahmatullah.

Kurang faham. Ni nak buat program telnet gunakan perl atau nak execute telnet dari perl?

Kalau letak camni kat dalam perl boleh?

`telnet ip`

Share this post


Link to post
Share on other sites

Wa'alaikumussalam Warahmatullah.

Kurang faham. Ni nak buat program telnet gunakan perl atau nak execute telnet dari perl?

Kalau letak camni kat dalam perl boleh?

`telnet ip`

- nak execute telnet dr perl?

- mcmane nk execute 2 file yg berbeza blh panggil perl dlm perl.

cth:

1- file ni dia print "hello"

"hello"

2- file ni print "hai"

"hai"

3. file ni pulak nk panggil kedua-dua file tadi iaitu 1&2

di paparkan "hello" & "hai" ade idea tk.

program ni utk execute telnet dr perl? sebab skrg ni guna 2 switch netgear & d-link.apabila program ni okey ia akan paparkan dkt cli(comand line interface)linux.

mcm ni dia paparkan- netgear sama dgn d-link juga

spawn telnet 172.16.10.157

Trying 172.16.10.157...

Connected to 172.16.10.157.

Escape character is '^]'.

(GSM7312)

User:admin

Password:*******

Share this post


Link to post
Share on other sites

SKRIP 1

#!/usr/bin/perl

system ("skrip2.pl");

system ("skrip3.pl");

SKRIP 2

#!/usr/bin/perl

print "Hello.\n";

SKRIP 3

#!/usr/bin/perl

print "Hai.\n";

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...