Results 1 to 10 of 16
I want to run a Script after being inactive for 15 Minutes.
I found out about the logoff profile trick and I did google for this.
But I have no ...
- 01-09-2008 #1
Script after inactive for 10 Minutes..
I want to run a Script after being inactive for 15 Minutes.
I found out about the logoff profile trick and I did google for this.
But I have no idea how to do this..?
I want to logoff after 15 minutes but I want to close everything on a Clear way.
Since well If I use Timeout from Profile my system stops working (since it closes Harsh
)
So well does anyone have an idea for this?
So.
After 54000 Seconds Inactive
sh ~/.logoff
How can this be done the easy way?
- 01-09-2008 #2
I don't think I have an answer for your problem, but what do you mean by "close everything on a clear way", and what do you mean by "closes harsh"?
--
Bill
Old age and treachery will overcome youth and skill.
- 01-09-2008 #3
heh well I knew id get a Question about this.
I run a PC that cant be logged of in the normal way.
The user is always logged in.
But It has to kill the vnc server
I can give you more information if you'd like but then we'd need to do that using somekind of 'Private' talk since I can show the system to you. But I have to reveal a password then
- 01-09-2008 #4
The nice thing about these public forums is that if I help you with something, then other people can benefit from that help. I can't count the number of interesting, useful things I've picked up from this forum.
The other interesting thing is that if we keep it public, you'll have to do the investigative work yourself. This leaves me more free time, so I can do yardwork. Not everyone likes to do yardwork, but I do. Besides, the weeds in my garden are getting out of control, even though it's winter.
Besides, I don't know anything about VPN's except that I know what the words "virtual", "private", and "network" mean.
So it's best that we do this via public dialog. Perhaps you can tell us, then, what you mean by "close everything on a clear way", and what you mean by "closes harsh". :)--
Bill
Old age and treachery will overcome youth and skill.
- 01-10-2008 #5
Heh sorry I didnt mean it like that I wanted you to fix my problem

I love Public Forums I learn a lot from just reading Topic from other people.
But I thought you might wanted to see the system I did build I didnt say(or ment) anything about giving you root access so you can fix it.
For a person to logoff he has to run the following script:
And not really log the user off. (does that make sence?)Code:vncserver -kill :1
Anyhow, that is all not really important for this topic.
I am just looking for a way to close it if the VNC session is unused for x minutes that he closes vnc:1
Cheers,
Robin
- 01-10-2008 #6
Again, I know nothing about VPN's. So I googled this:
and what I found (among other things) was a great number of announcements that one VPN or another would kill the connection upon inactivity of some arbitrary length of time.Code:VPN inactivity
So there must be some easy way to configure this. I imagine that way is documented for the VPN software you're using. I went to wikipedia and found this list of VPN software. Is the VPN software you're using on that list? What is it called? Can you get documentation for it?--
Bill
Old age and treachery will overcome youth and skill.
- 01-10-2008 #7
Its not a VPN?
heh
lots of people read VPN instead of VNC.
Well I did google that aswell (VNC inactivity)
And well I also want to log something when a Session is Timed out so its not that easy.
So I have to run a script on the users Desktop that has when the user doesnt do something the last 15 Minutes he has to Log something and he has to close the VNCServers Display 1.
heh thanks anyhow
Cheers,
Robin
- 01-10-2008 #8
Sorry. My mistake.
But my original line of questioning applies, with an additional detail.
First, I went to to the wikipedia article on VNC. And that leads to these questions:
Do you want to do this logging on the client side or the server side?
What software are you using on whatever side you wish to do the logging?
Is there documentation about inactivity for that software?
I know these questions won't completely finish the job, but they're the first questions to ask.--
Bill
Old age and treachery will overcome youth and skill.
- 01-10-2008 #9
Heh well I want logging on the server side so thats rather easy.
Just:
I want to log my own msg / Variables..Code:echo "Whatever I want to Log" >> /var/log.log
The VNC has a inactivaty function. But I cant use that since you dont log then AND its a Security Risk (Since you can time out when somebody hijacked your Session already and you will never know. If your PC shows a moving cursor you see its been Hijacked
)
Anyhow, I did read the wikipedia page aswell.
I also did read the MAn pages.
But I think that VNC is a side note on this problem. Since I want to do a script when the desktop is inactive for x seconds.
So if the Session is a VNC session or a Normal XFCE session shouldnt really matter.
Cheers,
Robin
- 01-10-2008 #10If it turns out that the solution needs to be implemented twice, once for VNC and once for XFCE, then it might matter indeed.So if the Session is a VNC session or a Normal XFCE session shouldnt really matter.
I'm beginning to think that this whole question might be more trouble to you than it's worth to you, but let me ask you this question:
What do you mean by "inactivity"? If your cat (not this kind jumps up to your keyboard and nudges your mouse (not this kind) a tiny bit and that causes the cursor to move, does that count as activity? Just like with a screensaver?
If it does, you just might want to look inside some source code of screensavers to see how they do this. If not, what counts as activity for you?--
Bill
Old age and treachery will overcome youth and skill.


Reply With Quote