1826320 Members
3979 Online
109692 Solutions
New Discussion

pwck and grpck capture

 
SOLVED
Go to solution
TheJuiceman
Super Advisor

pwck and grpck capture

Is there a way to capture this info to a file or parm so it can be emailed? Thanks.
5 REPLIES 5
RAC_1
Honored Contributor

Re: pwck and grpck capture

pwck | tee "some_file"
pwck > some_file 2>&1

grpck > some_file 2>&1

cat some_file | mailx xyz@abc.com
There is no substitute to HARDWORK
Patrick Wallek
Honored Contributor
Solution

Re: pwck and grpck capture

If you just want to e-mail it, there's no need to go to a file first.

# pwck 2>&1 | mailx -s "pwck output" someone@somewhere.com

#grpck 2>&1 | mailx -s "grpck output" someone@somewhere.com
AwadheshPandey
Honored Contributor

Re: pwck and grpck capture

there are many way to capture, pwck or grpck o/p.
if ur server is directly connected to net then previous replies are usefull, if not then use hyperterm instead, to capture o/p.

Awadhesh
It's kind of fun to do the impossible
Muthukumar_5
Honored Contributor

Re: pwck and grpck capture

Simply as,

# (pwck;grpck) 2>&1 | mailx -s "pwck and grpck output" mailID@domain.com

-Muthu
Easy to suggest when don't know about the problem!
TheJuiceman
Super Advisor

Re: pwck and grpck capture

Awesome. Thank you all.