Determine host type - WeOnlyDo Discussion board

Determine host type (General questions)

by LittleRob, Tuesday, June 06, 2006, 14:11 (6744 days ago)

Is it possible to determine the host system type (e.g. Unix or VMS) using wodsFTP?

Cheers

Rob

Re: Determine host type

by wodDamir, Tuesday, June 06, 2006, 14:21 (6744 days ago) @ LittleRob

Hi Rob,

Yes, you can do it by using RemoteIdentification Property.

You can find more help on this Property at the following link:

http://www.weonlydo.com/SFTP/Help/wodSFTPLib~wodSFTP~RemoteIdentification.html

Hope this helps.

Regards,
Damir

Re: Determine host type

by wodSupport, Tuesday, June 06, 2006, 14:25 (6744 days ago) @ wodDamir

Rob,

I'm not sure how much RemoteIdentification will help - but it is the only way to see type if the server announces it. If it doesn't, then there's no technical way to determine it only through SFTP protocol commands.

Kreso

Re: Determine host type

by LittleRob, Tuesday, June 06, 2006, 14:51 (6744 days ago) @ wodSupport

Kreso & Damir

Thanks for the very speedy response. However, I'm not sure whether that's going to be sufficient for me. I guess what I was hoping was for something more like the output of the FTP SYST command

e.g.

ftp> quote syst
215 UNIX Type: L8 Version: BSD-44

and on VMS I get a string that starts VMS

I can't test it easily in my office as my VMS machine doesn't have sFTP installed. least I don't think it does.

Rob

Re: Determine host type

by wodSupport, Tuesday, June 06, 2006, 15:14 (6744 days ago) @ LittleRob

Rob,

SFTP is nothing like FTP, so there's no SYST command. You can't even execute arbitary commands at all, only predefined subset that is used for managing files.

Kreso

Re: Determine host type

by Littlerob, Tuesday, June 06, 2006, 15:19 (6744 days ago) @ wodSupport

Kreso

Thanks. I guess I'll learn ;-) I've written a couple of FTP routines (using Sockets and more recently Catalyst's Sockettools) but I'm only just starting out with SSH.

Many thanks

Rob

Re: Determine host type

by wodSupport, Tuesday, June 06, 2006, 15:27 (6744 days ago) @ Littlerob

Rob,

SSH is different story. If you have wodSSH you could connect and send 'uname -a' to see about the system.

Kreso

Re: Determine host type

by Littlerob, Thursday, June 08, 2006, 12:01 (6743 days ago) @ wodSupport

Kreso

Just thought you'd like to know that my testing with the eval copy has gone so well that I've just bought wodsftp and wodssh. OK, it was only a single copy of each so you won't be retiring just yet, but as I believe Chairman Mao said Every thousand mile march has its first step

I've been really impressed by the level of support, the responsiveness here, and the quality of the code. Keep up the good work !

Cheers

Rob