Dear visitor, welcome to KDE-Forum.org.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
HELP !!!
Hi,
well I have one, for me, big problem an I don’t know if this is the right Forum to post this.
Let’s give it a tray.
I have a Openoffice Impress Presentation on a USB stick. I made a little script that every time when KDE starts loads and automatically starts the Impress Presentation.
But what I’m trying now is to make a script or something like that that when I pull the USB stick out kills the Openoffice Impress Presentation and automatically starts the Presentation when the USB stick is back in.
I tried the same thing on the stick like in the normal home folder (.kde/Autostart/script.sh) but it didn’t work. I tried several other thing without results. Does anybody have an Idea?
I’m using Suse 9.0, KDE 3.1, Kernel 2.4.
Sorry for my bad English.
A possible method. I dont know how good it is.
make a 2 scripts "mymount.sh" and "myunmount.sh"
[code:1]
#! /bin/bash
mount /mnt/removable (location of USB key)
ooimpress
[/code:1]
[code:1]
#! /bin/bash
killall ooimpress
umount /mnt/removable (location of USB key)
[/code:1]
and use these to scripts to mount and unmount your USB key.
Thanks for your Answer,
but the Script is not the Problem.
The Problem is to do this automatically.
When I pull out my USB stick myumont.sh should be executed and when I press the stick in mymount.sh should be executed.
How can I let him do that, as I said autostart is not working? If I execute the script with cron how can I know when the stick is pulled out.
Does anyone have suggestion?
Thanks