Afficher un message
Vieux 25/03/2008, 01h11   #2
Greg Russell
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Running script after logging out of SSH

On Mon, 24 Mar 2008 14:14:20 -0700, laredotornado wrote:

> I'm using Fedora Core Linux 6 and currently using zsh, but I can change
> shells. What I'm wondering is how I would execute a script after I have
> logged out via SSH. My normal way of working is to use Putty on my
> Windows XP machine to SSH in to my Linux box. When I click "exit" from
> Putty when logged in as user "me", I would like to run a script that
> backs up certain files.


The "man zsh" page indicates that you want the executable script as a
command in $HOME/.zlogout. I doubt that the file will be parsed if you
exit PuTTY in the manner you state, so you should exit the zsh by typing
"exit" in the window, rather than the GUI exit you state. You'll have to
experiment to verify that behaviour.

  Réponse avec citation
 
Page generated in 0,04546 seconds with 9 queries