Post a reply

Tip: Styles can be applied quickly to selected text.

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

martin

Re: Is this problem solved?

asz wrote:

I am experiencing the same problem with .bash_logout. Has this been fixed in some winscp version, 2002 was a while ago?

Well, this is not a bug. And the functionality has not been implemented, as there was no demand for that. Added to tracker though.
asz

Is this problem solved?

Hi
I am experiencing the same problem with .bash_logout. Has this been fixed in some winscp version, 2002 was a while ago?

/andreas
martin

aibon wrote:

are you sure? with scp i can't get .bashrc to execute on login, this works only with sftp....

Yes, I'm sure.
aibon

martin wrote:

What protocol are you using, SCP or SFTP? With SCP I can maybe issue 'exit' command before logout. But SFTP protocol does not have anything like this.


are you sure? with scp i can't get .bashrc to execute on login, this works only with sftp....
martin

aibon wrote:

thx for the fast answer. as i found out the .bash_logout is only executed when issuing a "exit", "logout" or "bye". think the problem is, that winscp just closes the session...

What protocol are you using, SCP or SFTP? With SCP I can maybe issue 'exit' command before logout. But SFTP protocol does not have anything like this.
aibon

thx for the fast answer. as i found out the .bash_logout is only executed when issuing a "exit", "logout" or "bye". think the problem is, that winscp just closes the session...
martin

Re: .bashrc & .bash_logout

.bashrc is not invoked by the client, but by the server. So in the same way, the .bash_logout must be invoked by the server. I cannot add any support for this to WinSCP. It is natural, as obviously the scripts are platform dependent. For example there are so such scripts on Windows.
aibon

.bashrc & .bash_logout

I wonder if its possible to get a bash_logout to work. .bashrc wors fine with sftp, but i cant manage to get a .bash_logout to work. is this supported by winscp or could this be possible for a future version?
would be a great feature.. really great for people with clustered servers, as we for example have set up 3 webservers and a few ppl are uloading stuff to to the master with winscp. so it would be really neat to make a rsync in the .bash_logout and synchronize with the slaves after uploading... doing this in cron every couple of minutes isnt quite as elegant as this would be. or does any1 got another suggestion how this can be done?

thx a lot ....
and keep on the good work with winscp, i really like this litte program...