is there any way to put the variable posorprom inside the telnet command in python? Here is a peace of my code:
posorprom = prom
tn.write(b"ls /mnt/flash/prom | wc -l\n")
i want to put the variable posorprom inside the command, so i already tried this:
tn.write(b"ls /mnt/flash/" + posorprom + " | wc -l\n")
but it doesnt work. please help me.