Ubuntu :: Terminal Pauses Execution Until The User Presses A Key

Sep 9, 2010

I can't seem to find the Unix command that pauses execution until the user presses a key (i.e. the equivalent of "pause" in DOS). Obviously, I need this for programming. I know about all the performance and security issues of system calls, so please don't recommend I used ncurses or some other library instead. I only plan to use it in small programs that I write to test various algorithms and where perfection isn't needed.

View 3 Replies


ADVERTISEMENT

Programming :: Get Bash Script Using Zentity To Exit If The User Presses The Cancel Or Close Buttons?

Feb 3, 2011

I am trying to get bash script using zentity to exit if the user presses the cancel or close buttons.The exit codes are working fine; they read 1 or 0 depending on the status but it always assumes 0. This is the portion of the script: PHP Code:

function settings(){
result=$(zenity --height=30 --width=300 --list --checklist --title='Selection'--column=Boxes --column=Selections --column="Options" 

[code]...

View 2 Replies View Related

Ubuntu :: Wait Command After Execution In Terminal?

Mar 14, 2011

How do I create a command to launch a program and then have the terminal wait for a specified time and then move on to the next command?I'm wanting to create a startup script, and I need program B to wait until program A has finished loading up.

View 2 Replies View Related

Ubuntu :: Terminal Title Reset After Command Execution?

Apr 12, 2010

I'm not quite sure what's up with this, but when I change the title of a terminal away from the default (e.g. to represent which project that terminal is to be used for), it changes back to the default (user@host:path), but only on the task bar at the bottom of the screen, listing the open windows.

If I change tabs in the terminal and then change back, it displays again at the bottom of the screen, but as soon as I execute another command (e.g. ls), then it resets again. That's quite annoying, as I like to have a few terminals open, each with a set of tabs pertaining to a particular project. The fact that I can't see from the title on the taskbar which is which means I have to guess/remember/check them all...

View 2 Replies View Related

Ubuntu Multimedia :: Hauppauge Remote Is Sending Key Presses

May 5, 2010

I've got a strange problem with my Hauppauge card; I've just undertaken a clean install of Mythbuntu 10.04, and the built in Hauppauge remote for my Nova S2 HD card is intercepting remote signals from the number and direction keys and sending them as keypresses to the terminal - even when lirc isn't running.I didn't have this issue under 9.04 - but it seems that whatever is intercepting the IR signal is preventing LIRC from getting a look-in as it makes no difference whether lirc is running or not.I found this thread: URL... but the link to the explanation is dead and my attempts to blacklist lirc_i2c and gpio_keys have made no difference.

View 4 Replies View Related

Software :: Crontab Script Execution - Different Behavior User-cronfile <-> System-wide Cronfile

Feb 26, 2010

Script iptables_reset.sh

Code:

#!/bin/bash
IPTABLES="$(which iptables)"
$IPTABLES -P INPUT ACCEPT
$IPTABLES -P FORWARD ACCEPT

[code]....

This works if I edit the system-wide crontab in /etc/crontab like this:

Code:

0 12 * * * root /root/iptables/iptables_reset.sh

But it won't work, if i edit roots user-cronfile by using crontab(1):

Code:

crontab -l
# m h dom mon dow command
0 12 * * * /root/iptables/iptables_reset.sh

The log entry is the same for system-wide and user-cronfile:

Code:

/USR/SBIN/CRON[5135]: (root) CMD (/root/iptables/iptables_reset.sh)

I tried different things and found out,if i don't use the "$(which iptables)"substitution in the script, it also works with the user-cronfile.

View 4 Replies View Related

Hardware :: Installing Debian Squeeze With Logitech EX100 - System Fails To Respond To Any Key Presses

Nov 4, 2010

I'm trying to install Debian Squeeze (net install CD) on a PC with an EX100 wireless keyboard and mouse. The system starts the install without any problem, and the keyboard works up to the first blue menu on the Debian installer then stops - the system fails to respond to any key presses.

The mainboard of the system is an Asus M2N68-AM SE2, keyboard / mouse receiver is plugged into one of the USB ports on the back. I've had a look through the BIOS, there seems to be no option relating to the keyboard. Changing the PnP O/S option seems to make no difference. I've managed to install Ubuntu without problem on this system so I know the PC and keyboard are working fine.

View 1 Replies View Related

Ubuntu :: Long Pauses Between Copying Big Files?

Nov 30, 2010

when i try to copy more than one files of average size of around 300MB, ubuntu copy one file then data transfer stops for some time, and then after it continues and again stops on the end of file?? i didnot faced this problem while copying data to my external hard drive.

View 3 Replies View Related

Ubuntu :: Inexplicably Long Pauses When Moving Files?

Mar 31, 2011

I'm wondering what might be causing some VERY long delays when I move groups of files from one directory to another on the same drive. In the GUI, I simply multi(shift)select a few dozen items at once (a set of JPEGs previously downloaded from my camera) and drag them together from the source directory window (where I downloaded all the images from the memory card) into a new/empty folder/window specific to that group of images. Just routine sorting of files basically... Once I 'let go' ('dropping' the items into their destination) there's often a SURPRISINGLY long delay before I can do something else within the GUI... open another file, or rename an item, etc... This delay can take a few seconds to more than a minute (if moving a couple hundred files at once)... this 'wait' during such a routine 'housekeeping' task seems surprising to me. During these delays, I CAN open/use other programs such as System Monitor or a browser... it just seems that additional GUI/filesystem tasks must wait out the delay before proceeding. If I go ahead and try to do another filesystem task during the delay anyway, it gets buffered... the file won't open/next files don't get moved/etc... UNTIL the delay from the first operation is complete (updated item counts resulting from file moves aren't reflected in List View until the delay is finished too).

According to System Monitor (see image attachment for screen cap during one of these delays...) one CPU is pegged (the "gvfsd-metadata" process, which I guess corresponds to the file/move) and the other 3 cores are relatively idle, and there's plenty of free RAM/no swap. I'd have thought such a delay wouldn't be an issue with Ubuntu/my PC... maybe I have something set up incorrectly? Other clues: intermittently, during these delays/file operations, the GUI shuts down all open windows (folders)... as if the delays/buffered tasks caused some sort of reset. The hard drive is internal SATA formatted regular Ext4 and the Ubuntu on my PC is the 32-bit version since I figured my Dell is too old (about 4-5 years) to justify the 64-bit version. Like most folks, there are LOTS of files/folders on my drives, but I only have 3 file windows open at once most of the time, and am only displaying the item names and 'sizes'... no other columns. Nothing other than the 'move' itself is running at the time which could help explain the delay.

View 1 Replies View Related

Fedora :: Rythmbox Pauses After 2 Seconds?

Dec 27, 2010

I'm having a buggy problem with rythmbox under F14. Sometimes when I start playing a audio cd or mp3 file Rythmbox will play about 2 seconds of the file then pause playback. When this happens it wont let me restart playback. I have to shutdown Rythmbox and restart it and try again.

I have all the latest updates, running on a Dell Latitude D510 laptop.

View 2 Replies View Related

Ubuntu Multimedia :: Videos Pauses Periodically On Intel Computer

Aug 20, 2010

I've bought an used computer with DQ965GF motherboard which includes GMA3000 integrated video, Sigmatel 92XX (from what specs say) audio codec, and CoreDuo processor. Also 1 GB DDR2 RAM.It worked great when I tested it using live Ubuntu 10.04, Compiz worked out-of-the-box, etc.But when I installed and started playing movies, I found problems. Videos pauses from time to time, approx. once a minute (randomly), even when there's no other activity. They pause for a very short moment, half a second maybe, with audio, then resume, usually with 1-2 secs period of slowed down playback (like, trying to get up to speed and sync), then resume normally.

I tested with mplayer and totem, seems to be the same, though on mplayer the effect seems to be less frequent / shorter delays.Can this be video driver? Audio driver? Motherboard issues? BIOS settings? How do I test?The videos that I play are usual DivX AVIs, can't be speed problems. Also, when I replay the paused parts, they do not pause again, so these are probably not movie/hard drive errors.

View 1 Replies View Related

Fedora :: Not Moving Mouse Pauses Screen?

Mar 20, 2011

When I don't move my mouse, my screen pauses and stops doing anything. I constantly have to move my mouse to refresh what is on the screen. For example, if there is a video on the screen, the video will stop and glitch up if I am not touching the trackpad to make the cursor move around the screen. The second I start to move the cursor on the screen, however, the video plays again. Why?!

View 1 Replies View Related

Ubuntu Networking :: Long Pauses At Start Of Pings And Http; MTU Related?

Mar 29, 2010

Brand new network, just installed, all ubuntu 9.10 boxes connected to a Dell 2206 dumb gigabit switch, and from there to Dlink router to cable modem. Pretty simple. ISP confirms great link out and inbound,

However, http requests can sit for 20-30 seconds (sometimes longer), before content returns, same for pings.

Some thought it might be MTU-related. What is best MTU setting 1500/1492/ ?

View 6 Replies View Related

Fedora Hardware :: HP Mini 2102 F12 Install Pauses

May 7, 2010

I was having some trouble trying to get Fedora 12 installed on an HP Mini 2102. It would pause on "initializing hardware..." and I seem to recall having a similar problem with another HP mini as well. I found an old sticky note I had written to myself. It said:
add to grub kernel boot line:
"ssb.blacklist=1"
So at the install DVD grub menu, I pressed "Tab" to edit the line for installation and then appended "ssb.blacklist=1" to the line and it seems to be working now.

View 2 Replies View Related

Debian :: Correct The Random Pauses Of Audio Files?

May 26, 2011

When I'm using various music players in debian, the audio always skips at random intervals, but still continues.

View 3 Replies View Related

Red Hat / Fedora :: Pauses During Boot - Error Occurred During Network Process

Jun 6, 2011

While booting my fedora15, it gets stuck for about 5-6 minutes. Previously there was no problem. I don't know what made this problem. After going through the boot process, error occurred during network process. Using following command I got the result.

Code: # systemctl status network.service
network.service - LSB: Bring up/down networking
Loaded: loaded (/etc/rc.d/init.d/network)
Active: failed since Sun, 05 Jun 2011 21:13:55 +0545; 11h ago
Process: 845 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)
CGroup: name=systemd:/system/network.service

Also right after the long pause following messages are printed
Code: 261.742053 usb4-1: device not accepting address 4 error -7
261.794087 hub4-0.1.0: unable to enumerate usb device on ports

I noted it down as soon as I saw the message after that long pause.

View 4 Replies View Related

OpenSUSE :: YaST Software Management Pauses Running SuSEConfig.gtk2?

Jun 23, 2011

used to (before 11.4) i never noticed a slowdown or pause in that YaSTinstall process _just_ before it finishes, when it updates a long listof config files (in /sbin/conf.d/)...before it just _ran_ through them
all...quickly producing a list like:

Running SuSEconfig.fonts
Running SuSEconfig.glib2
Running SuSEconfig.froff

[code]...

View 9 Replies View Related

Ubuntu :: Can't Type User Password In Terminal

Jan 13, 2010

I've been having problems whenever I'm asked for my password inside the Terminal. The most recent one happens when I type this

Code:
ben@ben-desktop:~$ sudo apt-get install flashplugin-installer

It says this

Code:
[sudo] password for ben:

But then I can't type anything. I try to but nothing happens.

View 6 Replies View Related

Ubuntu :: Agreeing To End User Agreement In Terminal

Dec 6, 2010

I am using Maverick and I like to update through the terminal using sudo apt-get update and then the subsequent upgrade command but this time it asked me to to agree to EULA's end user agreement. The agreement popped up and I can't figure out how to accept it. I don't have very extensive knowledge of the terminal. I already pressed enter and Y. Neither worked. what button to press?

View 2 Replies View Related

Ubuntu Security :: How To Lock Terminal On Login For User

Apr 22, 2010

I recently set up a family computer for a friend, and now his son is "experimenting" with the terminal (randomly entering commands). since he could accidentally do something bad, I am supposed to prevent him from using terminals, but only as hi user. I tried vlock and away, but with vlock it says 'this terminal is not a virtual console', and away can't seem to lock all consoles.

View 9 Replies View Related

Ubuntu :: Force The User To Login From The Terminal Before The Can See The Desktop?

Oct 2, 2010

I want to force the user to login from the Terminal before the can see the desktop

View 9 Replies View Related

Ubuntu :: Stop User - From Launching A Browser From Terminal

Jun 30, 2011

How do I stop a user, from gaining access to the internet(port) via a restricted browser? In other words, I want a general user to only to have access to Firefox and no other browsers.

My first approach so far, has been to write a bash shell script. It terminates a program based on keywords from known browsers (opera, asus, ect).

View 9 Replies View Related

General :: Red Hat 5 - Login - Asking Me For A User Name At The Terminal

Oct 28, 2010

I am using red hat 5. It is asking me for a user name at the terminal. I do not understand what it is asking of me. A user name was never established during installation of the program. it did ask for a root password during installation which i provided. At the terminal i did try typing "root" for the log in and the actual root password for the password. It gave me administrative access.

However, i don't know the correct command that will take me to the desktop. For windows i simply typed in win or exit to go to the main windows desktop. Linux is foreign to me... can anyone help? I would be greatful for the advice. I am a windows junky from way back.

View 6 Replies View Related

Ubuntu :: Script To Open Pseudo-terminal At User Login To GUI: (kiwi) 10.04?

Nov 26, 2010

I've been able to write a basic script that opens a terminal a lil messagemy issue, i want it to open its pseudoterminal as soon as i log into GUIthe script:

Code:
#!/bin/bash
if [ $1 = "start" ]

[code]...

View 1 Replies View Related

Ubuntu :: Random "freezes" Or Pauses For Like 20 Seconds, Then Back To Normal?

Feb 11, 2010

I am stumped. I get random "freezes" for like 20 seconds, then back to normal. Then again the same thing randomly. I thought it was my hard drive...replaced it, reinstalled 9.10 and same issue. Thought it might be the memory...nope!, thought it might be my motherboard, tried to update my bios and it froze and now I can't get in to my bios at all. I bought a new motherboard and did a fresh install of 9.10 and same problem!!! I took my hard drive out and put it in another computer and it ran the same ruling out hardware issues all together.

View 7 Replies View Related

Fedora :: Terminal Now Opens As -bash-4.0$ And Will Not Let Login As Any User?

Dec 3, 2009

For some reason my terminal now opens as -bash-4.0$ and will not let me login as any user.Is there anyway to fix this? It's very annoying and I've never came across it before.

View 4 Replies View Related

General :: Send Command To Another User's Screen Terminal

Mar 22, 2011

I have two users; user1 and user2. I have a bash script run by user1, that needs to run a command on a screen terminal started by user2.

View 1 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

Debian Multimedia :: Change Screen Resolution For One User On Terminal

Jul 13, 2015

I am wanting to try to change my normal user (bbq) to a different screen size within my secondary user (lfs). I was wondering how one would do that.

This happened when OpenClonk changed my screen resolution and when i changed it back my screen blacked out (and me being the idiot save it).

Debian 8 GNOME

Also (a bit unrelated) could a video card problem cause a user to log out? I have been having some severe problems with my monitor and I am thinking it is th video card. Sometimes when I am starting a program my monitor will lose connection to my computer (HDMI signal not found) and I will either have to wait a few seconds and it will turn on or it will just stay blacked out.

View 0 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







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