Programming :: If User Use "Enter Key" On Keyboard It Cant Continue And Finish

Feb 24, 2011

I just write a script that check some thing. and I use

Code:
read -p " enter : " chk

it executed. but if a user use "Enter key" on keyboard it cant continue and finish.

View 7 Replies


ADVERTISEMENT

Ubuntu :: Will Not Finish Booting - Press Esc To Enter Recovery Shell

Jan 22, 2010

I have never in a year had a problem with this d-boot system. Two days ago I tried to boot into ubuntu like every day. It started to load normal, went to the ubuntu logo and paused for about 15 seconds and posted this under the logo:

One or more of the mounts listed in /etc/fstab cannot yet be mounted
/: waiting for /dev/loop0
/tmp: waiting for (null)
/boot: waiting for /host/ubuntu/disks/boot
Press ESC to enter a recovery shell

I have looked everywhere and tried so many things, I can't look any further. All I have been doing for two days is trying to boot this system.

View 8 Replies View Related

Programming :: Bash - Read User Input: URLs Without The Enter Key Stroke?

Sep 23, 2010

Here's a challenge I've been struggling for months with:

I have a bash script that reads URL addresses of our internal server and then executes some test commands on them. Something like this:

Code:
read -p "Enter URL: " url
sh execute-what-ever-to $url

After copy-pasting the URL the user taps the enter key and the script proceeds, but here comes the tricky part: I want this to work without the need to press the enter key after copy-pasting the URL.

"read -n" does not work in this case, as the URLs vary greatly in length. However, the URLs always end to the same string. They could be like "http://url1/END", "http://url2/END" and so on. So this ending string "END" could be theoretically used to recognize that the whole URL has been pasted.

View 2 Replies View Related

Programming :: Perl - Way To Encrypt Command-line Input When User Enter A Password ?

Nov 4, 2010

I need user to input a password through command line in Windows cmd prompt. Is there a way to encrypt the input (such as put it into ......) when user is typing ?

View 2 Replies View Related

Programming :: Create A Simple Program With Will Continually Read Input From The User Until They Enter A Blank Line?

Apr 6, 2011

basically i have to create a simple program with will continually read input from the user until they enter a blank linei know how to read in certain input but not sure how to get it continually in a loop

View 2 Replies View Related

Ubuntu :: Keyboard Not Found - Press F1 To Continue

Jun 13, 2010

I got this keyboard no found error...no problem since my grub menu 1st entry is ubuntu...so once I got to load ubuntu, the keyboard magically works.

Basically when booting, it show "Keyboard not detected, press f1 to continue" then at the grub menu, I am not able to select win xp or anything. So by default 1st entry is ubuntu so I can boot into ubuntu.

Once ubuntu is loaded, I can use the keyboard to enter my password....

So I was wondering if the cmos battery is flat...but still why can't my key board be detected when booting up?

View 5 Replies View Related

Programming :: PHP Log File Downloads After They Finish?

Jul 30, 2010

I'm writing a download script, that will serve files for download and that has to log each download. I'd write something like this:

Code:
log_downlad($file_id, $user_id...);
$dl_path = $server_mount."/".$file_hash...;

[code]...

View 1 Replies View Related

Programming :: Can't Finish Make When Building Amfext (a Php Extension)?

Jul 16, 2010

I've spent all day trying to sort this out and I'm beginning to think this problem is specific to a Mac because I've managed to build this extension just fine on a debian vpsI'm trying to build the PECL extension amfext.I download the source to a folder and run the following:

Code:
sudo phpize --clean
sudo phpize

[code]...

View 13 Replies View Related

Red Hat / Fedora :: Captured Keyboard - Can Not Enter Anything ?

Jun 24, 2010

I'm using the Readhat Linux Enterprise 5, and I encountered a problem about captured keyboard need your help. I log in after entering the required username and password using keyboard, but then the keyboard is captured, i.e., I can not enter anything using keyboard. Meanwhile the mouse works well all the time. I encountered this problem when I pressed some keys wrongly two days ago, but unfortunatelly I can not find out these exact keys I pressed.

View 7 Replies View Related

Programming :: Way To Continue With C++ Project

Apr 26, 2010

I would like to ask your opinion for a new C++ project.I just finished writing a chess engine in a software engineering lecture.I don't see any way to continue with that project and I would like some new ideas.I would prefer to start something on my one but suggestions about small open source projects that are already out there are welcome.

View 3 Replies View Related

Ubuntu :: Botloader W/o Enter Key Or Remap Keyboard In Bios?

Oct 16, 2010

So, for some reason the right side ENTER, period, semi colon, SHIFT, and UP, Down, Left arrow keys have all stopped working on my laptop. I just set up a dual boot with windows xp, and ubuntu.

I checked under the keys, and cleaned them, and no problem. This wouldn't be that bad of a sutuation, I could just re-map the keys. However, when my computer starts, and I enter Bios > Bootloader, I get stuck.

I can use home/end to move up and down, but no way to select which OS I want. I have to plug in a USB keyboard to get into my OS. I don't want to be carrying around a keyboard, otherwise I wouldn't have a laptop.

So, I either need a different bootloader which can use some other keys, or I need a way to remap the enter key all the way back at the bios, so I can trick it and enter my OS,

Edit: Actually, I'll probably need a new keyboard. Ubuntu is pretty good with battery life, so I could boot into ubuntu, then hibernate. So, I need a good key mapper for Ubuntu

View 1 Replies View Related

Ubuntu :: How To Enter Password / Terminal Keyboard Doesn't Work

May 22, 2010

How do you enter your password terminal the keyboard doesn't work when I try

View 2 Replies View Related

General :: Enter Some Keyboard Keys At Startup And Assuming That Won't Work?

Apr 19, 2011

this may not be the right place to ask this, but my sister has a macbook and the keyboard does not want to work. i have looked online and i see that the main cause of this problem is in Leopard (correct me if im wrong). So i was wondering if perhaps using linux would solve this problem or if the problem is more hardware related than os related.

Also, how would i go about booting into a linux cd? since u need to enter some keyboard keys at startup and assuming that won't work, is there another way?

View 2 Replies View Related

Ubuntu :: All Versions - Fail To Boot - Unless Hold Down The Enter - Return - Key On The Keyboard

Oct 12, 2010

I have tried several versions on my netbook and all fail to boot unless i hold down the enter (return) key on the keyboard then it will load slowly i have also tried meego which does the same thing but i want to use UNR 10:10 without having to sit holding the keyboard for 2 minutes.

Toshiba NB200
Windows 7 Installed too
UNR 10:10 (have tried 9:10, 10:04 and 10:10)

View 1 Replies View Related

Programming :: Write A Bash Script That Continue Monitor The Tmp Directory?

Dec 25, 2010

In my tmp directory some logs are creating continue (with name logs.txt1, logs.txt2 up to 245). Some times these logs are creating continue within 1 or 3 second gap, now I want to write a bash script that continue monitor the tmp directory and if any time logs create simultaneously within 1 or 3 section gap it will alert me..( generally logs are create with the gap of 5 or 10 minutes duration or some time after one hours )

View 1 Replies View Related

Programming :: Continue Execution Of A Python Program While A Background Task Is Going On?

Aug 28, 2010

I'm trying to figure out how to continue execution of a Python program while a background task is going on.

In bash, it is adding "&" to the end as in:

Code:
#! /bin/bash
find / -iname "*.py" > /tmp/all_pys &
echo "looking for all python scripts and putting them in /tmp/all_pys"
(yes, I know I could just put the echo BEFORE the find but I just use it for example)

Say I do that in python (not necessarily running the shell, but perhaps using scriptutil.ffind or something similar), but want to allow the user to be doing something else while running that search in the background, how would I thread, fork, subprocess (not to be confused with the module and Popen) [or whatever I should call it] that?

View 14 Replies View Related

Programming :: Termios Programming - Without Removing Carriage Return / Enter Key

Jun 30, 2010

I trying to write a UART(interfacing of serial devices) to linux machine but after I execute the following code to receive data I need to enter key (carriage return).... but I don't want to remove carriage return/enter key

[Code]....

View 13 Replies View Related

General :: Continue A Script After "the Any Key" Is Pressed By A User?

Apr 24, 2010

IS there a way to continue a script after "the any key" is pressed by a user? I know there's the command "read" but then the input is put into a variable. Now i wan't to continue the script without comparing the user input. I tried something like this:

echo "Press any key to continue"read input

if [ $input = true ]; then
echo "Ok here we go"
fi

Also with a wild card but it doesn't work properly. Is there perhaps another way then with the "read" function?

View 5 Replies View Related

OpenSUSE :: Require A User To Enter Password To Open Terminal?

Sep 21, 2010

I'm in the process of configuring a "guest" account for houseguests tose my computer. I've got the file permissions set, but I'd also like to restrict their access to the terminal. It seems to me that most of the damage that can be done to a computer goes through the terminal.I downloaded Pessulus (I use Gnome)but it doesn't require a password. the profiled user can just open Pessulus and alter their profile -- what's the point?Is there a way I can require a user to enter a password, either for any terminal or Pessulus?I like Pessulus -- it's concise and easy to use. But it doesn't seem very secure as I understand it.

View 5 Replies View Related

General :: Didn't Show The Line To Enter The User Name And The Password?

Feb 21, 2011

I have downloaded the backtrack 4 r2 but when I started it, it didn't show me the line to enter the user name and the password

View 5 Replies View Related

Software :: When Enter The User Name And Password, Instead Of Logging Into The Console, It Again Redirects?

Jun 2, 2011

I have installed the new phpMyadmin3.4.1 on a server running Ubuntu 9.10 with apache and mysql. It runs on php5.2.10The apache config seems fine as the virtual directory that I configured works fine. http://<ip-of-server>/phpmyadminlink works. The home page is displayed. But when I enter the user name and password, instead of logging into the console, it again redirects me to the index page of the site. There are no errors displayed. I have checked that cookies on browser are enabled.The server is hosted on amazon web services, if that makes any difference

View 7 Replies View Related

CentOS 5 Server :: Login As Postgres User And Enter Commands?

Sep 10, 2010

I've had a server setup working perfectly for the last 2 years. Today we installed a newer version of postgresql and recompiled apache/php.

Postgresql will not start now.

"service postgresql start" = /var/lib/pgsql/data is missing. Use "service postgresql initdb" to initialize the cluster first. To initdb we need to be as user postgres.

"su - postgres" = "no file or directory"

In /etc/passwd = postgres:x:26:26:PostgreSQL Server:/var/lib/pgsql:/bin/bash

how i can login as postgres user and enter these commands?

View 2 Replies View Related

CentOS 5 :: Enter Password For Root User - SSH Access Denied

Apr 18, 2011

I have a new CentOS server install. I am trying to connect from a windows xp box using putty ssh. I can get as far as putting in the password for root user and then it tells me access denied.

View 2 Replies View Related

Fedora :: Computer Freezes After Enter User And Pass When Login To Gnome?

Mar 23, 2010

I am running FC12 64bit on my desktop and the problem is that after I enter my credentials at graphicall login screen (Gnome) the computer hungs i cannot moove the mouse, CTRL+ALT+DEL won't work the Caps and Scroll lock on my keboard are blinking. Nothing responds. I am absolutelly cluless. Untill yesterday i was using FC12 i686 and never had this problem, but i got 4GB ram so in order to get those fully i installed the 64bit version. On clean install of the 64bit ver everything went fine, but i updated the system and followed theese instroctions [LINK]http://www.howtoforge.com/the-perfect-desktop-fedora-12-i686-gnome[/LINK] and that's all

View 13 Replies View Related

Ubuntu :: Sudo Permisiion Denied, Even Enter Super User Password?

Aug 2, 2011

i trying to create file in /usr/local from below command"sudo df | grep /dev > dev_string.txt"First it asked for sudo password. I enterd sudo password. but I was not able to create the file dev_string.txt .Next time onwards it not asking sudo password also.the below execution flow

##################################################
/usr/local/$ sudo df | grep /dev > dev_string.txt
bash: dev_string.txt: Permission denied

[code]....

View 9 Replies View Related

Fedora :: Computer Freezes After Enter User And Pass When Login To Gnome

Mar 23, 2010

I am running FC12 64bit on my desktop and the problem is that after I enter my credentials at graphicall login screen (Gnome) the computer hungs i cannot moove the mouse, CTRL+ALT+DEL won't work the Caps and Scroll lock on my keboard are blinking. Nothing responds. I am absolutelly cluless. Untill yesterday i was using FC12 i686 and never had this problem, but i got 4GB ram so in order to get those fully i installed the 64bit version. On clean install of the 64bit ver everything went fine, but i updated the system and followed theese instroctions [URL] and that's all.

Before i atempt to login i can ssh to the machine.

View 7 Replies View Related

Programming :: Bash Wait For One Line To Finish Before Going To The Next Line?

Jan 10, 2011

I have a wrapper script called MAIN.sh that runs several other script. It looks like this:

Code:
#! /bin/sh
script1.sh

[code]...

View 6 Replies View Related

Ubuntu :: Password Doesn't Work To Enter Super User Mode In The Terminal

May 8, 2010

My password doesn't work to enter super user mode in the terminal. this password works for all other administartive uses in and out of the terminal, just not for entering super user mode.

View 8 Replies View Related

General :: No Prompt For Root Password After Attempting To Enter Single User Mode?

Jul 13, 2011

I followed instructions to enter single user mode by adding single at the end of kernel line but after that it doesn't ask for root password but brings up the sh# prompt. Isn't that supposed to be insecure? I understand for this the grub password can be applied but even after adding "single" it should ask for root password..or it should not..??

View 3 Replies View Related

Programming :: Read Keyboard Status (not: Wait For Keyboard Input)?

Jun 28, 2011

has bash a command that reads the keyboard status and exits? I want to write a loop of this form:

Code:
while [ 1 ] do
sleep (1)

[code]....

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved