Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Sasidharan9513

getting SFTP linux server current time using .NET assembly

Hi There,

I am getting the linux server time using the session execute command.

session.ExecuteCommand("date")

its getting the linux server time.

is it a right way of doing?

Regards,
S.Sasidharan
martin

Re: getting SFTP linux server current time using .NET assembly

SFTP protocol does not provide such information.
Anyway, the WinSCP .NET assembly should convert the remote file timpstamps to local time, so you can safely compare the timestamps against current local time.
Sasidharan9513

getting SFTP linux server current time using .NET assembly

Hi There,

I am using .NET assembly to connect to the linux server from windows server.

I am able to upload / download files from the linux server.

Is there a way to get the sftp linux server current time with the help of winscp .net assembly?

my requirement is that i need to get the sftp linux server current time and download only the files which are 15 minutes older.

any comments/suggestion would be helpful....

Regards,
S.Sasidharan