Results 1 to 7 of 7

Thread: Source code for watch command

  1. #1
    smhall05 NNTP User

    Default Source code for watch command

    Hello all,

    Where can I find the source code for the watch command? I tried to re-create it's function for my AIX box at work, but can't seem to get the same performance. Can someone either point me to the source code or provide a script that replicates its function? Thank you.

  2. #2
    ab@novell.com NNTP User

    Default Re: Source code for watch command

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    A couple steps. First, find out to which RPM 'watch' belongs:

    rpm -qf `which watch`

    Which gives you a package called 'procps'. Now head to www.opensuse.org
    and choose to 'Get it' and then the search link on the right-hand side.
    When there put in 'procps' and one of the resulting links should be:

    http://download.opensuse.org/reposit...-113.1.src.rpm

    Of course you can get the source for 'procps' all over but this is one
    from opensuse.org which is specific to what you have.

    Good luck.





    smhall05 wrote:
    > Hello all,
    >
    > Where can I find the source code for the watch command? I tried to
    > re-create it's function for my AIX box at work, but can't seem to get
    > the same performance. Can someone either point me to the source code or
    > provide a script that replicates its function? Thank you.
    >
    >

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.2 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

    iD8DBQFI9AuJ3s42bA80+9kRAkDLAJ4rInT7tXEdpP8u0bIbDJTcjuV76gCfc/XS
    nCXJ8ezHKjyRLC9dexNyewQ=
    =ox3T
    -----END PGP SIGNATURE-----

  3. #3
    guest NNTP User

    Default Re: Source code for watch command

    > A couple steps. First, find out to which RPM 'watch' belongs:
    >
    > rpm -qf `which watch`
    >
    > Which gives you a package called 'procps'.


    As user I get:

    error: file /home/[guest]/which watch: No such file or directory

    As root get:

    error: file /root/which watch: No such file or directory

    What be broke?

  4. #4
    ab@novell.com NNTP User

    Default Re: Source code for watch command

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Are you sure you copied/pasted the command I posted just like I posted
    it? Those are backticks.... not single-quotes or double-quotes.

    Good luck.





    guest wrote:
    >> A couple steps. First, find out to which RPM 'watch' belongs:
    >>
    >> rpm -qf `which watch`
    >>
    >> Which gives you a package called 'procps'.

    >
    > As user I get:
    >
    > error: file /home/[guest]/which watch: No such file or directory
    >
    > As root get:
    >
    > error: file /root/which watch: No such file or directory
    >
    > What be broke?

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.2 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

    iD8DBQFI9JeB3s42bA80+9kRAsf9AJ9AocOeD1mXDUKiULYkkgX5rS7qcQCdF119
    e+WHdNQP0tVNuWtjJwMolac=
    =cjrI
    -----END PGP SIGNATURE-----

  5. #5
    guest NNTP User

    Default Re: Source code for watch command

    > Are you sure you copied/pasted the command I posted just like I posted
    > it? Those are backticks.... not single-quotes or double-quotes.


    THNAK YOU!
    I am hapy to learn new and diferent today!

    May your camel glide smoothe.

  6. #6
    smhall05 NNTP User

    Default Re: Source code for watch command

    Thank you, worked well. I actually ended up going to the below after seeing what package watch belonged to.

    SourceForge.net Repository - [procps] Index of /procps

    I found that I could use CVS and checkout all the files I needed. I am not able to compile it on my AIX machine, but at least I have the source. Thanks again. Curious why are you using PGP SIGNED MESSAGE? Should we all?
    Last edited by smhall05; 14-Oct-2008 at 07:35. Reason: clarity

  7. #7
    ab@novell.com NNTP User

    Default Re: Source code for watch command

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Why do I use it? So people know when I'm posting as me, in theory. If
    they have my public key they can validate that the posts from me are
    really "mine", whomever I really am. Signing means that only the person
    with my private key (which is private, and which I keep as safe as
    possible) can pretend to be me and so far I'm the only pretender
    (afaik). This isn't required for anything to work, but I do it because
    I don't want to get undue credit for breaking people's systems. If it
    wasn't signed, it wasn't "me", and if it was then I'll try to make
    things right a bit more than I will if somebody else broke it, though in
    the end the forums are all based on volunteers, no liability, etc. It
    also gives me a place to play with PGP/GPG which makes me happy.

    Good luck.





    smhall05 wrote:
    > Thank you, worked well. I actually ended up going to the below after
    > seeing what package watch belonged to.
    >
    > 'SourceForge.net Repository - [procps] Index of /procps'
    > (http://procps.cvs.sourceforge.net/viewvc/procps/procps/)
    >
    > I found that I could use CVS and checkout all the files I needed. I am
    > not able to compile it on my AIX machine, but at least I have the
    > source. Thanks again. Curious why are you using PGP SIGNED MESSAGE?
    > Should we all?
    >
    >

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.2 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

    iD8DBQFI9LBp3s42bA80+9kRAsMCAKCJRgI7qqHnirqAiI/j2s1U2KqodgCfcQs2
    sOc4m1SmRMAv7H2nwIjgymc=
    =G6vO
    -----END PGP SIGNATURE-----

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •