Computing.Net > Forums > Programming > Redirect output of 'passwd' command

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Redirect output of 'passwd' command

Reply to Message Icon

Name: Mahesh_vs
Date: March 30, 2009 at 03:34:30 Pacific
OS: unix
Subcategory: General
Comment:

Hi frens,
How do I redirect all the o/p lines of 'passwd'
command and at the same time give my own
prompt lines to the user
ie. I just want to replace the following lines-

Changing password for user mahesh.
New UNIX password:
BAD PASSWORD: it is WAY too short
Retype new UNIX password:

-with my own.

Thanks,
Mahesh



Sponsored Link
Ads by Google

Response Number 1
Name: ghostdog
Date: March 30, 2009 at 06:18:33 Pacific
Reply:

first, sudo to root, then you can do without the prompt. or you can check out the --stdin option. check the man page


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Redirect output of 'passwd' command

Redirected Output To HTML www.computing.net/answers/programming/redirected-output-to-html/19029.html

SQLPlus - redirecting output www.computing.net/answers/programming/sqlplus-redirecting-output/7576.html

vb send dos commands to text window www.computing.net/answers/programming/vb-send-dos-commands-to-text-window/14358.html