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

On 24 mar, 22:14, laredotornado <laredotorn...@zipmail.com> wrote:
> Hi,
>
> 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.
>
> Thanks, - Dave


You could use .bash_logout (or zsh equivalent ?) feature. I'm not sure
about its use on .bash_logout, but 'nohup' command could tu run
your commands.
  Réponse avec citation
 
Page generated in 0,04645 seconds with 9 queries