Solved

Unix Shell Programming - How to execute Program without interactive mode

Posted on 2004-09-08
2
281 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 50 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help Required 3 135
BATCH to EXE Converter 2 99
Using C# How can I sample the current mouse position in a window 16 63
Extract data from output with RegEx 1 41
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

752 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