-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
#!/bin/bash
while 1 ]; do
ps aux | grep processName | grep -v grep | awk ‘{print $3}’ > filename
sleep 0.2
done
There’s a start.
Good luck.
diktofon wrote:
> ab@novell.com;1892160 Wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Why not use ‘ps’?
>>
>> ps aux | grep processName | grep -v grep | awk ‘{print $3}’
>>
>> Replace ‘processName’ with your process.
>>
>>
>
> That is cool! Thanks. Does anybody have an idea, how to put it now into
> the script, that will execute that command automatically each 0.2
> seconds and put the obtained values into text file? (I do not ask for
> the script, just ideas).
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJEitZ3s42bA80+9kRAhHXAJ9E/7iMmBKv7qs1DmEFgVwzbJFo0QCfah26
SWnI61ucGkPuko5EOpkrpt0=
=HQCR
-----END PGP SIGNATURE-----