<br><br><div class="gmail_quote">2009/2/17 althaf <span dir="ltr"><<a href="mailto:althafkbacker@gmail.com">althafkbacker@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div><div></div><div class="Wj3C7c">
On Tue, 2009-02-17 at 22:36 +0530, Fayaz useful wrote:<br>
<blockquote type="CITE">
Ok... So what kind of output are you trying generate?<br>
I just fell in love with my life...<br>
<br>
<br>
</blockquote>
<blockquote type="CITE">
On Tue, Feb 17, 2009 at 22:20, rathin r <<a href="mailto:rathin88@gmail.com" target="_blank">rathin88@gmail.com</a>> wrote:<br>
<blockquote>
Its not cross platform .. I wanted to implement it on Ubuntu .. And its that i want the system to be idle for half an hour or so. Just for a really small time period being idle isnt wat i meant it to work on.
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote>
<br>
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote>
<br>
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote>
On Tue, Feb 17, 2009 at 10:12 PM, Fayaz useful <<a href="mailto:fayaz.yusuf.khan@gmail.com" target="_blank">fayaz.yusuf.khan@gmail.com</a>> wrote:<br>
<blockquote>
Are you trying to do this cross-platform? I think the system can be considered idle for all the time the 'init' program is taking CPU cycles...<br>
I just fell in love with my life...<br>
<br>
<br>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote>
<blockquote>
<br>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote>
<blockquote>
On Tue, Feb 17, 2009 at 20:49, rathin r <<a href="mailto:rathin88@gmail.com" target="_blank">rathin88@gmail.com</a>> wrote:<br>
<br>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote>
<blockquote>
<blockquote>
<br>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote>
<blockquote>
<blockquote>
hi,<br>
I have got a mini-project to do.So i need suggestion frm u all .I will brief u on wat ma project is .<br>
I am doing a system administration project . In it i need the following functionalities :<br>
<br>
I want to monitor a system that is idle.<br>
For that i thought i would create a log which i keep checking. For that i<br>
create a link kinda structure using XML . For eg: if i have a dir,<br>
dir1 and in it i have dir2 . i will create a link b/w them to show<br>
that are linked.and along with that i need to maintain a record of<br>
the time it was created. If no link is created in a time span of half<br>
an hour then the system is supposed to be idle. Also there can be a<br>
state when a person is reading a text file.For that i would check<br>
whether there has been a key press. And if not then the system is<br>
idle. Also we have to check for a user initiated process like<br>
downloading or somethin. then too the system has to stay alive .. And<br>
the configurations that are to be created on all systems can be<br>
created on a single one and then forwarded to all.I hope this does<br>
satisfy the problem statement for ma project. If you want to add<br>
somethin then feel free to mail me. pls. And also i need to create a<br>
login for all the systems based on their college ids . So any suggestions<br>
on that .. i mean how to integrate it with our mail server. <br>
<br>
PS: I am open to suggestions .Feel free to reply. <br>
regards,<br>
<font color="#888888">-- </font><br>
<font color="#888888">RATHIN.R</font><br>
<font color="#888888">CS 06-10</font><br>
<font color="#888888">MODEL ENGINEERING COLLEGE</font><br>
<font color="#888888"><a href="mailto:rathin@mec.ac.in" target="_blank">rathin@mec.ac.in</a></font><br>
<br>
<br>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote>
<blockquote>
<blockquote>
_______________________________________________<br>
Mailinglist mailing list<br>
<a href="mailto:Mailinglist@ilug-cochin.org" target="_blank">Mailinglist@ilug-cochin.org</a><br>
<a href="http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org" target="_blank">http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org</a><br>
<br>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote>
<blockquote>
<br>
<br>
_______________________________________________<br>
Mailinglist mailing list<br>
<a href="mailto:Mailinglist@ilug-cochin.org" target="_blank">Mailinglist@ilug-cochin.org</a><br>
<a href="http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org" target="_blank">http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org</a><br>
<br>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote>
<br>
<br>
<br>
-- <br>
RATHIN.R<br>
CS 06-10<br>
MODEL ENGINEERING COLLEGE<br>
<a href="mailto:rathin@mec.ac.in" target="_blank">rathin@mec.ac.in</a><br>
<br>
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote>
<br>
_______________________________________________<br>
Mailinglist mailing list<br>
<a href="mailto:Mailinglist@ilug-cochin.org" target="_blank">Mailinglist@ilug-cochin.org</a><br>
<a href="http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org" target="_blank">http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org</a><br>
<br>
</blockquote>
</blockquote>
<blockquote type="CITE">
<br>
<pre>_______________________________________________
Mailinglist mailing list
<a href="mailto:Mailinglist@ilug-cochin.org" target="_blank">Mailinglist@ilug-cochin.org</a>
<a href="http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org" target="_blank">http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org</a>
</pre>
</blockquote></div></div>
Hey there jst do this .. get grep the output of the command "top" ,there u can see cpu usage , jst use a script to grep it using regular expression. <br>
<br>
<br>
</div>
</blockquote></div><br>Now to bring the system to previous state do this , i assume there is a server or another machine that is monitoring other system, if so , u can make use of ssh and public key cryptography to loin with out a password and execute the hibernate command <br>
eg:<br>if ( system == idle) {<br> ssh admin@system <br> exe->hibernate command with parameters<br>}<br><br clear="all"><br>-- <br>Althaf K Backer<br>Department of Computer Science<br>School Of engineering<br>Cochin University of Science and Technology <br>
<a href="https://twitter.com/althaf_k_backer">https://twitter.com/althaf_k_backer</a> join me here<br><br>