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
ADVERTISEMENT
Jan 10, 2011
I want to prevent "^C" from echoing when Ctrl-C is pressed. I did "stty -echoctl" which some googling results suggested. Now it echos raw Ctrl-C characters instead of the string "^C". That's not any better since it displays some funny blocked hexadecimal in the terminal window.
View 8 Replies
View Related
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
View Related
Dec 31, 2010
How to setup LXDE (a linux desktop environment) to hibernate a PC after the power button on the computer is pressed?
View 1 Replies
View Related
Jan 30, 2010
i've been searching all over the internet for a way to let the user press a particular key let's say 'y' without the user having to press [Enter] as confirmationfor yes, this would then run another function.
Quote:
Book Inventory Summary Report:-
Title, Author, Price
______________________________
StarWars EP1, G.Lucas, $49.59
Harry Potter, Rowling, $45.98
The Matrix, Mr. Smith, $53.98
Press 'y' to make a copy of this result into a file or 'n' to return to the main menu.. I understand the "press any key to continue" would go something like
Code:
read -sn 1 -p "Press any key to continue.." But i try many different ways of getting the "press a particular key" function, and none of them works.
View 5 Replies
View Related
Jan 25, 2010
I have downloaded Ubuntu 9.10 4 times from various sites and have burn the ISO on CD.Half way during the installation a message jums up concerning faulty CD or faulty CD ROM and that ubuntu can't continue coppying files from CD which in this case it doesnt apply, as my CD ROM is in good order.I have been dissapointed after noumerous tries installing UBUNTU.
View 2 Replies
View Related
May 23, 2010
Recent example: mountlo (using UML):
vi@vi-notebook:~/b$ mountlo -m 16 -d /dev/uba1 /home/vi/mnt/usb -t vfat -o iocharset=utf8,allow_other&
[1] 32561
vi@vi-notebook:~/b$ Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...OK
Checking advanced syscall emulation patch for ptrace...OK
Checking PROT_EXEC mmap in /tmp...OK
[Code]...
Also happens with Gimp (when it does run it's plug-ins). Parts of Gimp started by `gimp q.jpg&' freeze and cannot continue unless "killall -CONT" or made foreground. Is it a bug? How to reliably start things in a background?
View 1 Replies
View Related
Jan 18, 2010
Well; soon my site will be down and my internet too.I am still unemployed and can't pay my bills.I wish I could get a job in Linux somewhere, but it doesn't seem possible.Does anyone get paid in Linux? So, was wonderin how can I continue my Linux experience with no internet connection?And, Does anyone know of a hosting site that would hold or distribute my creations URL...they will be deleted from servers in about a week.I only pay $7 a month for my site; but its $40 a month for internet connection.
View 14 Replies
View Related
Dec 17, 2010
I have just assembled my computer and installed Fedora 13. After rebooting I get Error 25: Disk read error, Press any key to continue. When I do that the systems goes back to the GRUB window where I continue to press enter and it goes back to the error after a while.
View 4 Replies
View Related
Aug 29, 2010
i have been copying dvd's and now i do not have enough room in my temporary folder,but i cannot find out how to delete the folders and make space to continue
View 7 Replies
View Related
Jul 2, 2010
Here's my problem: While choosing to compress certain folders from within Windows 7, I marked the boot manager as 'compressed'. Now, when I try to boot, I'm not able to boot into Windows 7, or any other OS (I get an error: bootmgr is compressed, press Ctrl+Alt+Del to continue, which restarts the system and the same cycle continues.
I have a Windows 7 + open SUSE + Ubuntu 10.04 LTS wubi install boot setup. To complicate things, its a laptop, and the DVD drive is conked. Is there any way I can boot into any of my OS's? If not using a live boot, can I, perhaps make a bootable USB flash drive, boot into it and uncompress the boot manager ? Note: I'm typing this from another desktop, and I do not have Windows installed on this.
/ed:
Used this: [URL]..questions/137877/decompressing-files-on-an-ntfs-volume-from-linux/137906#137906 Still no go, getting the same error message.
View 2 Replies
View Related
Jan 4, 2011
I moved from a Linux environment from one company to another and one annoying difference came out:When I used to run an application in a terminal (no GUI), the transcript lines were presented one the window - when the window was full then the scrolling of the lines would continue only if one hit the space bar to proceed (of course waiting to user input did not stop the run).
In the new environment the behavior is different - transcript lines keep going on and on so I need to scroll up - and moreover each page-up command is cancelled by the new lines appearing.perhaps this is also reproduce with other Linux commands , say "find" or "ls".
View 4 Replies
View Related
Aug 5, 2010
I created a live usb and I am trying to boot linux, but after it starts a large written ubuntu screen when starting appears i.e its boot screen but it do not start and continues as if it is still loading.
View 8 Replies
View Related
Jun 23, 2011
I increase my knowledge in vim in two ways. Little hints about doing this or that and scattered studies using the vim help files. Please do not believe I always rely on the first one.
View 12 Replies
View Related
May 31, 2011
Possible Duplicate: Leave bash script running on remote terminal while not logged in? I run a program, say ./a.out 10 from the shell prompt. Assume that there's a while(1) inside the program being run. Now if I try to close the shell, it warns me that it'll kill my running program too! So, how to kill the shell and still let my program continue running in the background?
I tried exec ./a.out 10 but the shell is still there. Another alternative is to simply double click my executable but then how will I pass command line parameters?
View 2 Replies
View Related
Mar 29, 2010
Is there a terminal program that shows what you pressed on the keyboard?There are these two keys to the right and left of the up arrow key that are "PageBack" and "PageForward" for Firefox, but Midori can't use these keys like that, in fact, I don't think it even knows they exist. Wondering if I can get their name or something.
View 2 Replies
View Related
Sep 13, 2010
When I boot, apparently any Linux (Ubuntu and CloneZilla), I see the letters Code: ^]]B scroll pass, over and over again. This represents the down key as when I try to do anything the down key is held down. This occurs during boot on Ubuntu (once I get to the login screen it stops and does not happen). This does not happen at the GRUB screen or in Windows. It also occurs during the entire CloneZilla process and Ubuntu alternative install process (making both of these impossible)
I can't find any reason for this to happen and have been using both CloneZilla and Ubuntu for a long time before this happened. Does anyone know what I could try to fix this.
Ubuntu no longer boots.
View 9 Replies
View Related
Jul 1, 2011
A friend of mine has an old emachines with XP on it and at first it would complain it had to test the disk and turn off in less then a minute. Now it won't do anything except run the power supply and cpu fans while the start button is pressed. I checked for power on the blue , purple ,red and orange wires while 14 and 15 were jumped on the power supply. There are no lEDs on the board and no beeps. I disconnected all the peripherals also
View 11 Replies
View Related
Jan 28, 2010
I am working on a script and I want it to detect if CTRL+C is pressed at any time during the script and have it not Break the script and display a message stating to use CTRL+Z instead. How can I do that?
View 9 Replies
View Related
May 18, 2011
I�m configuring my Ubuntu 11.04 installation but one of the thing that really annoys me is that beeping sound every time I press a key on the keyboard. I haveńt found a way to disable it through System Settings(Sound preferences) and pcspkr is already blacklisted in the blacklist file.
View 2 Replies
View Related
May 26, 2009
Title is pretty self-explanatory. Suse 11.1 will not boot (or shutdown) past a certain point unless I constantly move the mouse around or press keys.
View 9 Replies
View Related
Mar 10, 2010
Is it possible to make a key print a different character while a certain other key is pressed using xmodmap?
View 14 Replies
View Related
Jul 4, 2011
I'm learning Signals, and I have a question:
Is possible to make a handle when I press any of the keyboard buttons?
The SIGINT handles the Ctrl-C combination, but I want to handle if any keyboard button was pressed.
View 3 Replies
View Related
May 4, 2011
I'm having a problem with vim and xterm. When I open a file and press any key, the colour scheme changes slightly. This doesn't happen if I run a 256-colour xterm (export TERM='xterm-256color') but if TERM is set to 'xterm' (the default) I see the colour change. Setting TERM='xterm-256color' in my ~/.bashrc is a "solution", but I'd rather not have to do that since it's never been necessary in the past (e.g., on 13.1) and I don't use any 256-color schemes for vim (usually just the default or possibly "delek"). It doesn't happen with rxvt or with Xfce's terminal. I've tried compiling some other versions of xterm but they either exhibit the same behaviour or don't build. I have tried running without any ~/.vimrc file just to be sure it wasn't one of my settings and I've also tried the sample file at /usr/share/vim/vimrc; the effect is the same.
View 10 Replies
View Related
Jun 1, 2010
I am currently using a Ubuntu Netbook Remix 9.04
When I press the power button, I see a dialogue box which asks for confirmation and if nothing is confirmed system automatically shuts down in 60 seconds.
I want to change this time of 60 seconds to say 30 seconds. Is it possible? Also is there a way to hide that dialogue box...
View 1 Replies
View Related
Jun 19, 2010
I want to be able to hide things so that they do not show up when show hidden files is pressed. Maybe something like a file that you can only get to by already knowing its location?
View 3 Replies
View Related
Jun 25, 2010
I have a dell zino inspiron media pc with Ubuntu 10.04 installed. I am able to shutdown using the power button on machine i.e. System->Preferences->Power Management option 'when power button is pressed': choose 'Shutdown'.But for option 'when suspend button is pressed', I only get 'Suspend' or 'Hibernate' in the drop-down. Where is my 'Shutdown' option?I really want to be able to shutdown my machine from my wireless keyboard!
View 1 Replies
View Related
Aug 21, 2010
How can I make GRUB boot into Windows 7 automatically and display the boot menu when I press SHIFT at bootup. I am using GRUB2.
View 2 Replies
View Related
Jan 8, 2010
one tell me the internal working of kill command. that is how it kills a process internally or from where it picks file to continue its process.
View 3 Replies
View Related
Nov 16, 2010
I've been running my shellscript for about half an hour now. It's taking longer than I thought to process all the data. I have the process ID of it. Is it possible to save the process and log out then log in and continue the process? I know how to pause a process using kill -pause pID and continue it using kill -cont pID. But that only work if you don't log out after pausing it.
View 5 Replies
View Related