Solved

Unix Shell Programming - How to execute Program without interactive mode

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
zeroMAx challenge 20 77
sumHeights  challenge 17 61
mergeTwo  challenge 13 72
Tviruailstringtree sort multi columns on header click 1 34
I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
A short article about a problem I had getting the GPS LocationListener working.
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now