Get FileList on Remote PC via SFTP
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Get FileList on Remote PC via SFTP
Hi,
thanks for the Sample Stack.
Upload/Download is working without Problems.
SFTP DirList Example is not working. I did test it
on my Raspberry and although on my Root Server,
on Linux PC and on my MacBook.
The Error Message is the same :
Error tsneterr: (79) Error in the SSH layer returned from Server.
thanks for the Sample Stack.
Upload/Download is working without Problems.
SFTP DirList Example is not working. I did test it
on my Raspberry and although on my Root Server,
on Linux PC and on my MacBook.
The Error Message is the same :
Error tsneterr: (79) Error in the SSH layer returned from Server.
-
- VIP Livecode Opensource Backer
- Posts: 190
- Joined: Sat Apr 08, 2006 7:55 am
- Location: Lübbecke, Germany
- Contact:
Re: Get FileList on Remote PC via SFTP
@Michael
Tried the sample stack here also with my Synology NAS. Same result.
Upload / Download works, file listing not.
I should have some working code somewhere. Will have a look later after lunch.
Tried the sample stack here also with my Synology NAS. Same result.
Upload / Download works, file listing not.
I should have some working code somewhere. Will have a look later after lunch.
Re: Get FileList on Remote PC via SFTP
I confirm.
But it's twisted.
the Dir list works fine (with the URL provided in the stack)... on LC Indy 8.1.10 !
But fails on LC Indy 9.6 rc2 and LC Indy 9.5.1.
Tested on both MacOS Catalina 10.15.4 and Windows 8.1.
I've opened a bug report.
Re: Get FileList on Remote PC via SFTP
Okay, thanks a lot for the Information. I thought it was
my mistake.
Regards
Michael
my mistake.
Regards
Michael
Re: Get FileList on Remote PC via SFTP
Hello again,
i found a Solution to get the Directory. Not with SFTP but it is working...
Best Regards
and stays healthy
Michael
i found a Solution to get the Directory. Not with SFTP but it is working...
Code: Select all
on mouseUp
put shell("ssh pi@192.168.178.31 ls /home/pi & exit") into fld "Ausgabe"-- returns a listing of the remote dir on Unix
end mouseUp
and stays healthy
Michael
Re: Get FileList on Remote PC via SFTP
The new version of tsNet available here :
https://quality.livecode.com/show_bug.cgi?id=22638
solves the problem (tested on Windows 10)
Bug report here :
https://quality.livecode.com/show_bug.cgi?id=22746
https://quality.livecode.com/show_bug.cgi?id=22638
solves the problem (tested on Windows 10)
Bug report here :
https://quality.livecode.com/show_bug.cgi?id=22746
Re: Get FileList on Remote PC via SFTP
Is it possible to install the new Version of TSNet on my Ubuntu 18.04 or MacOS System?
-
- VIP Livecode Opensource Backer
- Posts: 190
- Joined: Sat Apr 08, 2006 7:55 am
- Location: Lübbecke, Germany
- Contact:
Re: Get FileList on Remote PC via SFTP
You could also use the following links to download the complete 1.4.2
If you have a Business license use this link
https://downloads.livecode.com/tsNet/ts ... _1.4.2.zip
If you have an Indy License then use this link
https://downloads.livecode.com/tsNet/ts ... _1.4.2.zip
Please download the correct version for your license. It is not possible to use the Indy version in LC Business ! ! !
Then
1. extract the file
2. If you are on Mac OS X, then open the Livecode bundle (right click on the Livecode...app icon and select "Show package contents" and double click the folder Contents
3 open the folder Ext
3. remove the older folder tsNet_Indy_1.4.1 or tsNet_Business_1.4.1 -- this is important
4. copy the new tsNet_Indy_1.4.2 or tsNet_Business_1.4.2 folder into the Ext folder
Re: Get FileList on Remote PC via SFTP
Hello Matthias,
i followed your Rules and put the new downloaded tsNet_Indy1.4.2 Folder on my Linux opt folder where the EXTensions are located (Ofcouse i removed the old Version). I made a new Standalone of the sample_sync_stack and i have the same result. Upload and Download via sftp is working, get FileList via sftp is not working.
But ...when i use :
I think,from this FileList i can filter the Information i need.
Thank you for helping.
Best Regards
Michael
i followed your Rules and put the new downloaded tsNet_Indy1.4.2 Folder on my Linux opt folder where the EXTensions are located (Ofcouse i removed the old Version). I made a new Standalone of the sample_sync_stack and i have the same result. Upload and Download via sftp is working, get FileList via sftp is not working.
But ...when i use :
i get a detailed file List from my home Folder with Information about write/read Permissions on each file.put "sftp://pi:Wuppertal2019@192.168.178.31/home/michael/" into Adresse1
put URL Adresse1 into fld "Testausgabe"
I think,from this FileList i can filter the Information i need.
Thank you for helping.
Best Regards
Michael
-
- VIP Livecode Opensource Backer
- Posts: 190
- Joined: Sat Apr 08, 2006 7:55 am
- Location: Lübbecke, Germany
- Contact:
Re: Get FileList on Remote PC via SFTP
You could also use tsNetGet function to get the filelisting.But ...when i use :i get a detailed file List from my home Folder with Information about write/read Permissions on each file.Code: Select all
put "sftp://pi:Wuppertal2019@192.168.178.31/home/michael/" into Adresse1 put URL Adresse1 into fld "Testausgabe"
But anyway. You´ve got it working.
Matthias