The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
18 views

netsh advfirewall : how to force to prompt matched IP

I have a netsh script that inserts some IP's to block in the Microsoft firewall. All these rules are working perfectly. I would like to create an additional rule to have a popup / prompt from the ...
1
vote
1answer
154 views

Change PS1 value for all Bash users

I am trying to change the prompt value for all users of a system (the $PS1 variable) to the same value. I have the following stored in file /etc/ps1: PS1='` if [ $? -eq 0 ]; then echo -n ...
1
vote
1answer
289 views

How to force a browser to prompt for client certificate, even when one was already previously added

Any way to force the browser to prompt for a client certificate, even if another one was already installed? At that apache level? At the browser level? I'm totally cool with a solution that is ...
0
votes
1answer
105 views

Prompt to user during startup on Debian

I need to write a script which prompts information to the user in case of an error. Is it possible to do it using /etc/init.d scripts + update-rc.d? Is there any other way? Thanks for your ...
0
votes
2answers
58 views

making one computers bash prompt match anothers

The computer who's prompt I'm trying to copy: [root@CompanyName-LAMP-DEV:/current/path]$ We'll call that computer computer A. The prompt my computer - computer B - currently has: [root@ip-x-x-x-x ...
1
vote
2answers
2k views

SSH on Debian: Password prompt hang

Alright so a friend is having an issue on his SSH login prompt where the username prompt responds instantly (right when you connect VIA ssh), but the password prompt (right after you enter the ...
2
votes
1answer
46 views

linux prompt: show current branch?

I want to have my command prompt to not display my username, but to show what git branch I am currently in. In other words, this is what I want: [master]$ ls README INSTAL whatever.py [master]$ ...
1
vote
1answer
626 views

Solaris 10 OK PROMPT - CDROM situation

This is not an emergency, but I would like to save a trip to the datacentre during the weekend. It turns out that I need to reinstall Solaris 10 on a server, but the drive seems to be open/ejected. ...
3
votes
3answers
4k views

Bash prompt on Ubuntu - FQDN (\H) same as hostname (\h)

We've got seperate environments at my workplace for development, testing, integration, and staging. Within those envs, we've overloaded the hostnames in DNS - e.g. in the dev environment, the primary ...
0
votes
2answers
333 views

Write environmental variable on client machines, based on AD information

i want to alter the logon.bat script for our AD users (windows xp/vista/7 machines and a few servers), so that it writes an environmental variable upon login based on some AD information, like "what ...
0
votes
1answer
208 views

WHM: Globally change Indexing to be None and request passwords via HTTP window

I am using WHM. I want to set the default behaviour for any created accounts to be No-Indexing. Also, when an account accesses CPanel, I want it to be shown the HTTP prompt for user and password ...
1
vote
1answer
2k views

How do I import large sql file to local LAMP (xampp) environment [closed]

I have used Linux to import a large mysql dump file (into a new database), but am new to how the process works in a local LAMP environment using xampp, as xampp does not support SSH. I've dowloaded ...
5
votes
2answers
714 views

Why does CTRL-r act weirdly (showing only part of a command) on OS X

Ctrl-r is a great little tool for searching your .bash_history for previously run commands. However, when I use it in my OS X Terminal.app I see weird behavior, and I was wondering if anyone else ...
1
vote
1answer
551 views

Change login prompt on Debian server

I need to change a telnet login prompt of Debian 4.0 server. Currently it is of form: hostname login: I need to have just: login: Apparently chnages to /etc/issue.net only influence what is ...
1
vote
1answer
236 views

window 7 UAC aproved unaproved list

Problem: Not able to print reports in CRM because of UAC blocking it. Notes: A user with local admin has clicked no to the UAC prompt in CRM while printing a report. The prompt was for a program ...
1
vote
3answers
198 views

Where are all the places Windows environment variables set?

When I run cmd.exe and type 'set' I have a %LIB% variable set. The value is pointing to a folder that doesn't exist, which causes warnings during Visual Studio compiles. Here's the thing... If I go ...
2
votes
4answers
849 views

How to lock user in a shell script program?

Let's say I have a Linux OS without desktop environment. After the PC finish boot up, it will directly show the shell terminal to the user. I plan to write a shell script program and make it ...
2
votes
3answers
394 views

What's wrong with this bash prompt?

I use the following entry in ~/.bashrc file to colorize the prompt and display current branch of git repository: PS1='\[\e[1;32m\]\[\u@\h\]\[\e[m\] \[\w\]\[\e[1;1m\]\[$(__git_ps1 " (%s)")\] ...
0
votes
1answer
941 views

unwanted password prompt pops up on web server?

my web server randomly asks for a password as though basic authentication is turned on. It's an IIS 7 web server and you have to specifically install basic authentication in the roles section. It ...
1
vote
4answers
167 views

a unix single-line editor/prompt?

I've got a bash script that would be nicer if when I prompt the user, rather than just asking for input, if it provided a line that the user could edit (but a full text editor would be overkill, it's ...
6
votes
3answers
968 views

Bash: how to know if the last command's output ends with a newline or not?

Most of the time the output of a command ends with the newline character. But sometimes it does not, so the next shell prompt is printed in the same line together with the output. Example: ...
5
votes
4answers
3k views

Prompt customization: how to detect when there is no tty

I have a customized prompt with colors (using tput) and every time I start a non-interactive session in the server I get a bunch of errors. For instance if I start a non-interactive session like this: ...
6
votes
1answer
2k views

Bash custom prompt breaking wrapping of long command lines

I have a custom bash prompt that colours my username, hostname and current working directory. The colours display correctly, however when I type a command line that needs to wrap, the terminal does ...
3
votes
9answers
16k views

Is there a way to delay a forced reboot?

I realize this is more appropriate for our company's admin group to field. However, pretend they are unresponsive just for the sake of discussion =) If my system is prompting me to reboot now or in a ...
5
votes
3answers
763 views

Getting more helpful tab completion prompts in bash?

Let's say I have a directory with a few files in it like this: $ ls file1 file2 file3 And I want to do some tab completion in bash: $ cat file<tab> file1 file2 file3 I remember ...
2
votes
5answers
1k views

Who decided the default shell prompts in Linux?

There are a couple of defaults in the standard Linux shell, bash, that I think need some history brought out. This question is about the prompt. The default prompt in bash in many Linux distros is ...
2
votes
4answers
441 views

How can I copy sanely (not using “Mark”) from the Windows command prompt

Given a very long single command at the command line in Windows, I'd like to simply copy that command into clipboard. I am just looking for the ubiquitous Shift-End , Ctrl-C type functionality almost ...
13
votes
6answers
23k views

Capturing output of remote process from sysinternal's psexec

I'm trying to capture the output of the remote process from psexec (i.e. not psexec's own output). So, for example I could run "ipconfig" and print the output to a log file. I have tried: psexec ...