LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-26-2010, 08:39 PM   #1
Hi_This_is_Dev
Member
 
Registered: May 2009
Location: India
Distribution: On my PC I use RHEL, at office AIX, Solaris, HP-UX, RHEL.
Posts: 254

Rep: Reputation: 18
Input Redirection


I have this piece of code in my shell script file:

Code:
useradd $UserName; passwd <& $password
I am not able to perform Input Redirection while setting password programatically- without any user intervention.

I think there is a way to do it, but it is just getting slipped from my mind at the moment.

Can anybody help me with it?
 
Old 04-26-2010, 08:51 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
http://stackoverflow.com/questions/7...a-shell-script
 
Old 04-27-2010, 02:25 AM   #3
Hi_This_is_Dev
Member
 
Registered: May 2009
Location: India
Distribution: On my PC I use RHEL, at office AIX, Solaris, HP-UX, RHEL.
Posts: 254

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by AlucardZero View Post


Thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File Input Redirection Question Mistro116@yahoo.com Programming 4 01-09-2009 03:25 PM
help with input output redirection Hard_Working_ Programming 2 05-07-2007 11:11 AM
question about input output redirection in c haydari Programming 3 04-16-2007 07:52 AM
Editable input from the terminal and redirection neville310 Programming 4 04-10-2007 03:24 AM
Implementing Input Redirection amitbern Programming 3 11-06-2006 12:04 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration