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.
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:
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
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
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?
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