Sponsored Content
Full Discussion: Bash answer prompt
Homework and Emergencies Emergency UNIX and Linux Support Bash answer prompt Post 302489822 by otheus on Friday 21st of January 2011 06:12:43 PM
Old 01-21-2011
I'm guessing the application reads from TTY since redirecting from STDIN didn't work. As "ilikecows" said, check with "expect". If "program" is actually "sudo", then I can help you with that ... there's a NOPASSWD option you can add to certain user-command pairs so this doesnt happen. If it's ssh, you should use a public/private keypair for that user.
This User Gave Thanks to otheus For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

customize my prompt in bash

in csh I was using: set prompt=""$HOSTNAME".tk.\!> " to customize the look of my prompt. I have seen the light after reading the perils of csh scripting and wish to switch to bash. How do I customize my bash prompt??? I've tried many variation of the above w/no success, and searching this... (2 Replies)
Discussion started by: yankee428
2 Replies

2. Shell Programming and Scripting

How can i change my bash prompt ?

It looks like, user@hostname:/auto/home3/user$ Desired, user@hostname$ I added following line in .bashrc, but still its same. export PS1=" $ " Please help me :confused: (13 Replies)
Discussion started by: admax
13 Replies

3. UNIX for Advanced & Expert Users

Bash conditional prompt?

Hi, Does anyone know any way of making bash prompt extended with conditional content? Example: export PS1="] && echo '#' || echo '\$'" # This won't work - prompt is not executed # export PS1="\$" # This is an existing but also working equivalent I would like to use more complex... (8 Replies)
Discussion started by: adderek
8 Replies

4. OS X (Apple)

Bash prompt wraparound

I'm using a custom prompt with PS1 in my .profile. It is PS1="\\u@\e\:\W\ \\$\ \" and it works well, as you can see, http://content.screencast.com/users/killer54291/folders/Jing/media/2b3db52a-ebf7-43e2-95cc-f45dadbc2b98/00000023.png but, when i type more than the width of the window, it... (0 Replies)
Discussion started by: killer54291
0 Replies

5. Shell Programming and Scripting

BASH: Getting titlebar and prompt to 'sync up'

This is an instance of "if it's not one thing, it's another." I recently fell victim to my own stupidity in trashing, by accident, my long-running and very highly-customized .bash_profile and .bashrc files for Cygwin & Cygwin/X. I had backups from a previous "go" with this, and decided to use... (0 Replies)
Discussion started by: SilversleevesX
0 Replies

6. Shell Programming and Scripting

Bash script to start program and answer prompts?

I'm trying to write a script the simplifies the execution of a program: After starting the program (sh ~/.mfix/model/make_mfix) I am prompted four times for options: Do you need SMP version? (y/n) Do you need DMP version? (y/n) Do you need debug version? (y/n) Force re-compilation of... (2 Replies)
Discussion started by: lanew
2 Replies

7. UNIX for Dummies Questions & Answers

Right justifying prompt data in bash

Hi, I have a custom prompt in Bash. However, I would like to further customise it so that it shows me the date and time. However, I would like this new addition to appear on the right side of the terminal window. The idea behind this is to "visually balance" some data on the right as most of... (2 Replies)
Discussion started by: vnayak
2 Replies

8. Shell Programming and Scripting

How to (GUI) prompt for password from bash?

I remember there was a gnome only command that we could insert in a bash script to mount a Linux disk that would pop up a little window to grab a password. I know there are bash commands to read a string but they are not GUIs and they echo the characters typed. This gnome command popped up a... (1 Reply)
Discussion started by: siegfried
1 Replies

9. UNIX for Dummies Questions & Answers

Bash prompt is over lapping

Hello Guys, I have facing problem with linux shell prompt .Am expecting my Bash prompt to be like below but its showing like ~]$ ot@Servername and while typing the commands the prompt looks like below: ~]$ echo $PS1 $ ~]$ ot@ServernameChecked the .bash_profile and also changed... (9 Replies)
Discussion started by: kapil514
9 Replies

10. Shell Programming and Scripting

Autojump with modified bash prompt

I use the .bashrc file from this thread. Direct link to the archive containing the ultimate bashrc I am trying to use autojump, but it will not autoload the directories to the autojump list as the custom prompt is not compatible. Here is the thread on the issue from other users. apt -... (2 Replies)
Discussion started by: genehunter
2 Replies
gpasswd(1)						      General Commands Manual							gpasswd(1)

NAME
gpasswd - change group password SYNOPSIS
gpasswd [-r|-l|-u] [group] DESCRIPTION
gpasswd changes passwords for group accounts. Only an administrator may change the password for any group. The used hash algorithmus is defined by the value of GROUP_CRYPT or, if not specified, CRYPT from /etc/default/passwd. If not configured, the traditinal des algorith- mus is used. OPTIONS
-r Remove group password. -l A system administrator can lock the password of the specified group. -u A system administrator can unlock the password of the specified group, if the group is not passwordless afterwards (it will not unlock a group that has only "!" as a password). FILES
/etc/group - group account information /etc/default/passwd - default values for password hash SEE ALSO
group(5), groupadd(8), groupdel(8), groupmod(8) AUTHOR
Thorsten Kukuk <kukuk@suse.de> pwdutils July 2006 gpasswd(1)
All times are GMT -4. The time now is 07:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy