General :: Bring Back The Command Prompt When Running An Infinite-loop Containing Program?

Jan 13, 2010

When running a program that has infinite loops in the terminal , how to bring back the command prompt ? ( I'm using Fedora core 5 )

View 7 Replies


ADVERTISEMENT

Server :: Running 2 Infinite Loop Scripts At Startup?

Aug 19, 2009

there's 2 scripts that i want to run when my server start.I a bit new to linux, i found that i could use the script rc.local to run things at startup, although, what i want to run is 2 infinite loop, so the first loop run but not the second.

View 14 Replies View Related

Programming :: Infinite Loop That Isnt Infinite?

Oct 27, 2010

i was playing around with c++ recently and for laughs and giggles i came up with this little program

Code:
#include <iostream>
using namespace std;
int main ()
{

[Code]....

theoretically that should be an infinite loop but it in fact does terminate eventually echoing out 'FIRE!'

just wondering if even though in theory this should be an infinite loop (a number repetedly divided by 2 should never reach 0 thus the conditions of the loop should never be satisfied, hence infinite loop) perhaps in practice limitations of the variable types prevent this?

View 2 Replies View Related

General :: Bash Infinite Loop Haunting?

Mar 17, 2010

I want to figure out what is going on in this small script.Its really strange.I think its the infinite loop again.All I want to do is to collect some data from the zenity dialog box in an array and then echo it.Here is the code

Code:
#!/bin/bash
#export PS4='+${BASH_SOURCE}:${LINENO}:${FUNCNAME[0]}: ' debugging info

[code]...

View 5 Replies View Related

General :: Xinetd Server Configuration - Infinite Loop?

Apr 14, 2011

I have a java server console program that I have configured xinetd to start when connection comes in on a given port and then the program runs in an infinite loop receiving inputstream from telephone exchanges. The thing is, when a new chunk of stream comes from the exchange xinetd forks a new process each time. I tried setting the wait parameter to yes and restarted the deamon, but no success. How can I stop this behavior and have the deamon just direct the stream to the process already running? Am I missing something in my config or is it just incorrect?

My config is as follow:
defaults
{
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 50 10
}
includedir /etc/xinetd.d

And then my actual config,
service aos_larmar
{
socket_type = stream
protocol = tcp
user = root
type = UNLISTED
wait = yes
instances = 256
server = /home/gunnl/java/start.sh
port = 5204
disable = no
}

My server OS is, Red Hat Enterprise Linux ES release 4 (Nahant Update 7)

View 1 Replies View Related

Ubuntu :: Bring Back Program Submitted By Nohup?

Apr 21, 2010

I had a make file which deals with hundreds of thousand jpeg images. I submitted this job by using: nohup make & Is there any possible way that brings this program back to foreground? I can only use ps to monitor the status, command jobs cannot find it.

View 1 Replies View Related

General :: Executing A Program From Command Prompt?

May 27, 2011

I'm trying to run an application from the command prompt. I've set the path in .bashrc. My executable file and all other files needed by it are saved in the same directory as the path. When I enter the executable name to run it, I get an error message saying that the command is not found.

View 14 Replies View Related

General :: Command Prompt Ftp To Ftp Server Running On Windows?

Dec 27, 2010

I am using on Windows Vista, Filezilla server. I have it set up to be accessed via outside IPs and when I use a client on the IP I have it connects normally using Filezilla client. On the same machine I have Ubuntu running in a virtual box and when using filezilla client in there it works fine. Now I want to try the command prompt. So I do the ftp xxx.xxx.xx.xxI enter the name and password and i get the ftp command prompt, but the commands are not working properly. when trying "ls" or "cd" these commands do not work. "cd" tells me that the current directory is "/" root, but this does not make sense in the windows operating system. Now the filezilla client is taking the user in the application window directly to the root folder of the permitted filespace granted to that user. How can the same be done from the command prompt, if there is a way? It is as if the command prompt takes me to the root which does not exist or even have correct permissions to move in. Is there any way to be taken to the correct directory directly, or move there especially when the slashes are the wrong way around etc?

View 1 Replies View Related

Debian Multimedia :: X.Org Infinite Loop Bug In Squeeze?

Mar 25, 2010

I think i came across a bug in X server in squeeze. I would report it to the bug tracking system in debian packages but the think is I am not entierly sure about it.When i start X (whether it is through startx or service gdm start or auto startup through init when the pc boots) the computer PC seems to lock up.The screen goes black right after X initializes and before anything is show in the screen and if i wait a about 10 minutes the monitor either goes in standby or out of range. PC seems unresponsive to both keyboard commands and mouse but my LCD screen in my G15shows the time skips 1 sec every 2 sec (from 19:22:22 goes straight to 19:22:24).

I have a custom 2.6.33 kernel which i build but it happens with both 2.6.32-trunk and 2.6.32-3 offical kernels from the squeeze repository so i dont think that this is the problem.My PC is a P4 3.75Ghz with 2Gb RAM and an NVidia 6800GT with the binary drivers from nvidia. I have tried diffrent versions from my grapgics drivers (NVIDIA-Linux-x86-173.14.25-pkg1.run & NVIDIA-Linux-x86-195.36.15-pkg1.run) with no change in the behaviouThis is the syslog from the time my pc started and then "stuck". I left it for some time before i hard reset it

View 14 Replies View Related

Software :: Detecting An Infinite Loop In A Process?

Apr 1, 2011

I am trying to develop a process monitor, or use existing monitors to achieve the below given actions.

1) Restart a processes if it crashes.
2) Restart a processes if it is stuck in an infinite loop.

The sample code below describes the structure of the process.

while(1)
{
statement 1....
statement 2....
while (1)
{

[Code].....

The goal is to restart the process if it is stuck in a loop, inside the outer while loop. Given this scenario, what would be the most efficient way to monitor such a process?

A sample solution would look something like this: statement 3 will write to file1 every time it is executed and we know that the maximum execution time of the outer while loop is 30 seconds. A second, timer driven process, checks for file1 being modified every 30 seconds. If the file is not modified, process 1 will be restarted assuming, process1 is stuck in a while loop.

View 2 Replies View Related

Debian :: Graphical Login Screen On An Infinite Loop?

Jun 3, 2010

I'm using debian etch and I've installed some automatic updates, after that some programs weren't running. So I restarted the pc. Now that the computer boot up normally but when it reaches the login screen it just emit a sound in the pc's speaker,he login screen flickers and is showed another login screen again and again and again (it's automatic). I can logon using the option single-user mode in the grub options, any idead on how can I fix it?

View 5 Replies View Related

Ubuntu :: Infinite Boot Cycle Loop After Grub

Jan 26, 2011

When I boot one of my machines, it gets as far as GRUB, then proceeds to a blank screen for a second, and then repeats the cycle all over again - ad infinitum. I have tried previous kernels on the list with the same results Also, I cant boot into recovery mode either.

I have run Memtest successfully from the GRUB options and no errors appear in the results. I have tried booting from a Live CD and here I get as far as the "OS choosing screen". When I then select one and hit Enter, the screen goes blank and the machine reboots as before.

View 5 Replies View Related

Ubuntu :: Stop The Infinite Loop Splash Page In 10.10?

Feb 15, 2011

I upgraded to 10.10, system rebooted but it is stuck at a constant loop.

I can go into safe graphics mode and things look fine except compiz isn't running. I have tried going into login and changing it to log me in automatically but the problem remains.

I've tried using my previous kernal and I have the same issue as this newer one.

I've tried loading gdm from CLI and the problem is still there.

View 2 Replies View Related

Ubuntu :: Infinite Startup Loop - OEM / Black Screen

Apr 18, 2011

I'm doing a dual boot Ubuntu 11.04 and Windows 7 on my Asus UL80v. When I restart and keep going into Ubuntu I'm fine, but I think if I go to Windows and then restart, the infinite start up happens, and I'm currently stuck in this. It'll go to the OEM screen, then a black screen with a cursor, then it goes black, and then back to the OEM screen and so on and so forth.

Luckily I have Ubuntu 10 on my flash drive, so I'm booting to that while I try to figure out this. Which reminds me, when I use the flash drive, there's an option to boot to local disk which also does not work, if that's worth anything. Before this happened, I ran check disk on windows because I ran into some partition troubles. There seemed to be no problems, and I can still access the drives from this flash Ubuntu.

View 1 Replies View Related

Ubuntu :: Printing Gets Infinite Loop Of Blank Pages?

Jun 25, 2011

I installed Xubuntu and was thrilled to see that it had already setup my Brother HL-2140 USB laser printer.However, there is something seriously wrong with the setup. When you try and print, even a test page - it just churns through the entire paper tray printing nothing. Also, when you restart the computer it tries to print the jobs again. I went to Printing and selected the printer but could not find where you could see the print job queue. I did see it during troubleshooting and was able to delete the jobs on the troubleshooting screen.

View 3 Replies View Related

Slackware :: EQ Overflowing Server Is Probably Stuck In An Infinite Loop?

Oct 28, 2010

It happens really randomly. Suddenly keyboard and mouse stop to react. Screen freezes. However if I have for instance skype running during that "crash", I can still continue to talk over internet. For me looks like x serwer crash. Xorg logs however are empty. I had to hard reboot only to get control over pc (magic sys key + SUB) only works. Trying switch to another session is not working. I run Slackware 13.1. Kindly asking to help me to solve that irritating issue. I pasted errors usually I find at Xorg.0.log.old after hard reboot only

Code:
2.6.35.4 #2 SMP Tue Sep 14 19:33:55 CEST 2010 i686 Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz GenuineIntel GNU/Linux
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 8800 GT/PCI/SSE2
OpenGL version string: 3.2.0 NVIDIA 195.36.15
OpenGL shading language version string: 1.50 NVIDIA via Cg compiler

[Code]...

View 1 Replies View Related

Fedora X86/64bit :: F13 EQ Overflowing - The Server Is Probably Stuck In An Infinite Loop

Sep 16, 2010

I have recently been running into the "EQ overflowing" message. It has been happening when I open an image with gimp or a xls with open office. I noticed some were having this issue with earlier kernels. I am using the nouveau driver to run two nvidia cards with three monitors. I am currently running the 2.6.34.6-54.fc13.x86_64 kernel. Here is the output of my Xorg.0.log file:

[Code]...

View 1 Replies View Related

Fedora :: Stuck In Infinite Loop On Login After Changing Wallpaper?

Aug 17, 2011

Fedora 15, fresh install.I changed the wallpaper from default to a solid colour. After switching between gradient to colour the system crashed logged me out and upon logging in it simply runs endlessly accessing my harddisk but never actually loading the desktop.I can kill X and reboot, but it's the same problem waiting for me on restart. I really don't want to re-install or delete users (to put it in context, I just spent 3 days trying to install Fedora because Anaconda doesn't know how to install GRUB correctly).

View 5 Replies View Related

Ubuntu Installation :: Screen Shell Goes Into An Infinite Loop After Upgrading To 10.10?

Oct 20, 2010

I have just upgraded from 10.4 to 10.10 (x64), and now when I run gnu screen the new shell session goes into an infinite loop displaying:

Quote: Linux dave-desktop 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16 20:45:36 UTC 2010 x86_64 GNU/Linux
Ubuntu 10.10

Welcome to Ubuntu! * Documentation: [URL]...

0 packages can be updated.
0 updates are security updates.

repeatedly until I hit CTRL-C and break out of screen. I tried tmux and that did the same thing, so it is a problem with the shell initialisation rather than with the screen program. However I can start bash, zsh or sh directly in a terminal with no problem.

View 1 Replies View Related

General :: PHP - How Big Buffer Can It Bring Back

Jan 21, 2010

I need to use php to run some scripts locally. I tried it with system, exec But it only brings back on line. Ideally I want to take all the out put back on my browser.

PHP ------>shell scripts ------> error + plus out put
^--------------------------------------------|
some thing like that.

View 1 Replies View Related

General :: How To Bring Process Back To Foreground

Feb 9, 2010

I start a process, put it in the background running, then log out, then log in again, and want to bring the process to front again. I've looked in "ps aux" for the PID, but it won't be put in the foreground with "fg ###". What's the correct way? (I use the same account for both login sessions.)

View 2 Replies View Related

CentOS 5 :: Can't Seem To Save Changes / Exit Screen To Get Back To Command Prompt

Dec 14, 2009

im following a tutorial to setup a dns server, after editing vi etc/sysconfig/syslog, i cant seem to save me changes or exit the screen to get back to a command prompt. have tried to google the answer to no avail, any ideas? also im using putty to ssh, is the answer the same as using the terminal directly?

View 2 Replies View Related

General :: Bring Back A Disowned Process To Foreground?

Jun 16, 2010

I had started a process through ssh and then i did 'cntrl+Z' and 'bg' and 'disown' before closing the ssh connection. That process kept running in the background in the other machine and now i want to bring it back to foreground in that machine. However running the command 'fg %<process_id>' is not helping. What do i DO!?

View 6 Replies View Related

General :: Unable To Bring Back Terminal Launcher In Fedora?

Feb 3, 2011

Our office housing keeping guy sat on my linux (Fedora 7) system and somehow removed the main panel. By panel I mean where all the menus are there - Applications, Places, System etc. and contains a tab for every running application. I brought back the panel but now I don't see the terminal launcher and I can't find it anywhere.It used to be there in "Applications -> System Tools -> Terminal" but now the System Tools option itself is not present there. System -> Preferences -> Look and Feel -> Main Menu. There one System option is unchecked but I can't check it and apply. I am logged in as root.

View 2 Replies View Related

Ubuntu :: Running A Command In The Alt+F2 Prompt Possible In Bash Scripts?

Jan 5, 2010

Is running a command in the Alt+F2 prompt possible in a bash script?I need this for a launcher for gnome-shell.For it I have written a little script to check if the process gnome-shell is alive and act accordingly.The script works fine, I just don't know how to write "debugexit" to the Alt+F2 prompt, as that is the only decent way I have found to shut gnome-shell down and going back to gdm desktop smoothly.

View 1 Replies View Related

Ubuntu :: Different Results When Running In Command Prompt And Via Script?

May 26, 2010

i wonder if it is usual that the results of running commands via the command line is different from running them in a script file. my problem is that, i've to run 'modprobe -r e100' and 'modprobe e100' before suspend my machine via pmi in order to resume it properly. i wrote a script containg EXACTLY the same commands as i typed in the terminal/console but the result was not the same. the machine cannot be resumed as expected if i run the script file.

View 2 Replies View Related

General :: Bring Cursor To 1st Char In Current Line (Command Mode)

Dec 4, 2010

Just in case someone can reply a silly question, I've quite forgot the vi/vim command to bring the cursor to the 1st char in the current line. I do remember that for bringing it to EOL is '$'.

View 14 Replies View Related

Ubuntu :: Will 10.10 Bring Back Some Of The Old Functionality

Jun 20, 2010

I've been holding out on the recent few versions of Ubuntu because of the recent changes, so I was just wondering if 10.10 will bring back some of those lost features.

1. Will we see a way to have a customisable login screen?

2. Will there be an option to move the close button as a standard setting?

View 4 Replies View Related

Fedora Installation :: Possible To Bring Desktop Back In F15?

Jul 11, 2011

How to bring Desktop back again on Fedora 15. We have developed an application that places some shortcuts on Desktop. With Desktop disappearing in Fedora 15, those shortcuts will become useless. Can we shorten the learning process in Gnome 3?

View 2 Replies View Related

Fedora :: F15 Won't Open After Updates / Bring It Back?

Aug 1, 2011

I'm running Fedora 15 64bit KDE.

After doing a #yum update and updating 451 updates, after rebooting its gets to the white bar going to Fedora 15 at the bottom of the screen and just stops. No error messages or nothing.

What command could possibly bring Fedora back?

View 14 Replies View Related







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