<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.24.1.1">
</HEAD>
<BODY>
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 &lt;<A HREF="mailto:rathin88@gmail.com">rathin88@gmail.com</A>&gt; 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 &lt;<A HREF="mailto:fayaz.yusuf.khan@gmail.com">fayaz.yusuf.khan@gmail.com</A>&gt; 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 &lt;<A HREF="mailto:rathin88@gmail.com">rathin88@gmail.com</A>&gt; 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&nbsp; 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 &nbsp;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&nbsp; . 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">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">Mailinglist@ilug-cochin.org</A><BR>
                <A HREF="http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org">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">Mailinglist@ilug-cochin.org</A><BR>
            <A HREF="http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org">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">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">Mailinglist@ilug-cochin.org</A><BR>
        <A HREF="http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org">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">Mailinglist@ilug-cochin.org</A>
<A HREF="http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org">http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org</A>
</PRE>
</BLOCKQUOTE>
Hey there jst do this .. get grep the output of the command &quot;top&quot; ,there u can see cpu usage , jst use a script to grep it using regular expression. <BR>
<BR>
<BR>
</BODY>
</HTML>