?
Solved

Unix Shell Programming - How to execute Program without interactive mode

Posted on 2004-09-08
2
Medium Priority
?
296 Views
Last Modified: 2010-04-17
Hi
I am writing a shell script for exeucting a program. This program needs password to execute. How to give the password to this program from shell script without interactive mode (so that script won't wait till user enter the password).

Please reply.

Regards
Kedar
0
Comment
Question by:Kedar_Acharya
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 19

Accepted Solution

by:
RanjeetRain earned 150 total points
ID: 12008643
Many methods are there.

(1)  Pass the password as a command line argument (insecure method)
(2)  Pass the name of a password file on the command line (not fool-proof but better than the previous one)
(3)  Give the execute permission only to the user whom you want to validate. That way the OS would validate him anyway when he tries logging into the system
0
 

Author Comment

by:Kedar_Acharya
ID: 12010494
Thanks for the information.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Simple Linear Regression

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question