Python Forum
pysftp pop-up 'Client forking'
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pysftp pop-up 'Client forking'
#1
Running Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15) on Linux Mint

I am trying to use pysftp, the test code
#!/usr/bin/python

# test_remote.py
# to test connections to a remote machine

import subprocess
import pysftp

with pysftp.Connection('pi', username='pi', password='raspberry') as sftp:
    out=sftp.execute('ls')
    print out
    
works but when it runs I get a pop-up
Client forking
Select the fork branch to follow
There is a drop down with options 'Parent Process' and 'Child Process'
What does it mean and how can I avoid this? My code will run in the background so I really don't want pop-up boxes.

Thanks
Mick
Reply
#2
example shows different commands for execution (put and get):
mport pysftp

with pysftp.Connection('hostname', username='me', password='secret') as sftp:
    with sftp.cd('public'):             # temporarily chdir to public
        sftp.put('/my/local/filename')  # upload file to public/ on remote
        sftp.get('remote_file')         # get a remote file
Reply
#3
I just tried you code and I still get the pop-up box. Why? Do you get the pop-up when you run it or is there something odd about my setup?
Reply
#4
Quote:Why? Do you get the pop-up when you run it or is there something odd about my setup?
I cannot run it as I don't have it installed

The code is from the homepage: https://bitbucket.org/dundeemt/pysftp
and a cookbook here: https://pysftp.readthedocs.io/en/release...kbook.html

you of course have to substitute data pertinent to your application.
Reply
#5
Yes I realise that, I did put my values it and it works, but when it runs I get the pop-up box first, hit enter and then I get the result. With the pop-up it is completely useless to me.

Does anyone use pysftp?
Reply
#6
Only other suggestion I have is to look through issues list: https://bitbucket.org/dundeemt/pysftp/is...tatus=open
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  pysftp connection issue geil007 0 2,795 May-18-2022, 08:40 AM
Last Post: geil007
  Does pysftp need a logout? Pedroski55 2 3,319 Jun-24-2019, 10:05 PM
Last Post: Pedroski55
  Use pysftp to get the content of a remote folder Pedroski55 0 6,909 Jun-18-2019, 09:22 AM
Last Post: Pedroski55
  PySFTP ChDir Error490 whoknows 2 3,931 Jan-19-2018, 08:18 PM
Last Post: whoknows
  PYSFTP - Password Change torz 0 2,399 Dec-11-2017, 02:32 AM
Last Post: torz

Forum Jump:

User Panel Messages

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