[HPADM] RE: Capture 'pwck' & 'grpck' command output

From: Masse.Olivier@hydro.qc.ca
Date: Wed Jun 08 2005 - 14:30:54 EDT


pwck >/tmp/file 2>&1

2>&1 redirects standard error to the file

--
Olivier Massé
Équipe SAP - Planification et projets d'infrastructures
Exploitation des TI, Hydro-Québec
Masse.Olivier@hydro.qc.ca
 
Note aux correspondants externes à Hydro-Québec: Utiliser l'adresse
omhydro@mayoxide.com pour tout envoi contenant un fichier attaché.
Note to senders external to Hydro-Québec: Please use the address
omhydro@mayoxide.com for any e-mail containing a file attachment
-----Message d'origine-----
De : hpux-admin-owner@DutchWorks.nl [mailto:hpux-admin-owner@DutchWorks.nl]
De la part de Stephanie C
Envoyé : mercredi 8 juin 2005 14:02
À : HP-UX Group
Objet : [HPADM] Capture 'pwck' & 'grpck' command output
Hi There,
How do I capture/redirect the output from command 'pwck' and 'grpck' to a
file.
"pwck > filename" does not work. "filenane" is nothing in it.
Thanks.
Stephanie
--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact
majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner:
owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse
only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse &
search)
--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:48 EDT