Python
xxxxxxxxxx
import pxssh
import getpass
try:
s = pxssh.pxssh()
hostname = raw_input('hostname: ')
username = raw_input('username: ')
password = getpass.getpass('password: ')
s.login (hostname, username, password)
s.sendline ('uptime') # run a command
s.prompt() # match the prompt
print s.before # print everything before the prompt.
s.sendline ('ls -l')
s.prompt()
print s.before
s.sendline ('df')
s.prompt()
print s.before
s.logout()
except pxssh.ExceptionPxssh, e:
print "pxssh failed on login."
print str(e)
C - Dinamik xotira ajratish yordamida eng katta raqamni toping
Linux - anc-api-tools qanday o'rnatiladi
Kotlin - Sonning faktorialini toping
Java - Ikki massivni birlashtirish
Java - Raqamni teskari aylantirish
Python - Lug'atni qiymat bo'yicha qanday saralashim mumkin?
JavaScript - Satrdagi unlilar sonini hisoblang
Linux - zlib1g-dev qanday o'rnatiladi
C++ - Raqam tub yoki oddiy emasligini tekshiring
PHP - Qiymat bo'yicha o'sish tartibida assotsiativ massiv
Linux - curvedns qanday o'rnatiladi
Kotlin - Joriy sana/vaqtni oling
Kotlin - Raqam juft yoki toq ekanligini tekshiring
Java - Piramida va naqsh yarating
Kotlin - Raqamning kuchini hisoblang
Kotlin - Natural sonlar yig‘indisini hisoblang
Kotlin - Ikkita suzuvchi nuqta sonini ko'paytiring
C++ - Ikkilik sonni oʻnlik songa va aksincha oʻzgartiring
We have been online since 2021 and 1 millions of people around the globe have visited our website since then
More visitors every month