Script on shutdown?



1. Is there a way of running a script on shutdown?
I'd like to close some windows.

2. Is there a script to end a program (ssh)
running in a particular desktop, eg desktop 5?

3. Is there a way of running a program (ssh)
on a specified desktop when logging in?

Basically, I want to automate the process
whereby I open an ssh window to a remote computer
in a given desktop.
At the moment I do this by going to the desktop
and clicking a button in my KDE Favourites,
admittedly not very onerous.

One slight annoyance is that when I login again
I get a local konsole in that desktop,
which I have to close before clicking on my ssh button.



--
Timothy Murphy
e-mail: gayleard /at/ eircom.net
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines



Relevant Pages

  • Re: Giving shutdown rights to somebody
    ... > that executes the shutdown command and then exits immediately. ... > that shutdown-user via ssh what will cause the remote scripts to run. ... > after that the master script ends the shell directly. ...
    (comp.os.linux.security)
  • Re: pppd pty equivilent in FBSD
    ... I let pppd manage retries & setting routes. ... >I wouldn't personally recommend vpn over ssh for anyone either, ... I'm the sole bsd user at my company, and the ppp over ssh ... >Actual bash script I call: ...
    (freebsd-net)
  • Re: [kde-linux] Sessions names
    ... ssh 192.168.2.80??? ... You can write a wrapper script that would start ssh to some ip and rename the ... konsole session dynamically. ... dcop call to konsole you need to know the pid of konsole. ...
    (KDE)
  • Re: Hacker activity?
    ... >login to a server, most as root but some are attempts to login to ... >telnet, all come from the same remote server, and all fail. ... >getting some odd cgi calls to a script on a secure ssl server. ... Make sure root cannot login to your system via ssh. ...
    (freebsd-questions)
  • Re: Learning Expect - Some help with a straightforward script + advice on cleaner ways to do thi
    ...  This is the first script of a few to go across multiple servers, but basically I have a very, very, very outdated hosts file that needs to be updated, as well as servers whose ... This script is used to ensure servers are up and running. ... # Need a way to check for an ssh time out/hang on connect ... # - Checking if the ssh session is connecting and then getting term'd ...
    (comp.lang.tcl)