Python Forum
Need help with a Python script!
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help with a Python script!
#2
It looks like session is not connected, or has no method named sendline
Try adding some print statements (or run in debugger)
that is a sure way to see that you are getting the results that you expect.

Actually, looking at it a bit more, you're calling addClient with no arguments
in your example code, but the error message doesn't match, it shows an 'ls -la' command

please show code that matches error!
Reply


Messages In This Thread
Need help with a Python script! - by Kaos_Method - Jul-06-2017, 09:50 PM
RE: Need help with a Python script! - by Larz60+ - Jul-07-2017, 12:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is there a *.bat DOS batch script to *.py Python Script converter? pstein 3 3,854 Jun-29-2023, 11:57 AM
Last Post: gologica
  How to kill a bash script running as root from a python script? jc_lafleur 4 6,233 Jun-26-2020, 10:50 PM
Last Post: jc_lafleur
  crontab on RHEL7 not calling python script wrapped in shell script benthomson 1 2,437 May-28-2020, 05:27 PM
Last Post: micseydel
  Package python script which has different libraries as a single executable or script tej7gandhi 1 2,740 May-11-2019, 08:12 PM
Last Post: keames
  Check Python version from inside script? Run Pythons script in v2 compatibility mode? pstein 2 9,993 Jul-07-2017, 08:59 AM
Last Post: snippsat
  Cant pass corect variables to python script in bash script neradp 3 6,379 Nov-05-2016, 01:26 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020