Programming :: System Getting Hanged While Code Running

Oct 1, 2010

I am using Pthread concept for developing my application Some times my system is getting hanged while the code is running and as soon as I am Pressing CTRL + C it is coming out of the code and system is going to the normal state. but several time only ^C is appearing in the terminal and system is not responding. do any one have the Solution what to do in that case.

View 3 Replies


ADVERTISEMENT

Programming :: Stop Reading Process Without Be Hanged At The Code In Python?

Dec 11, 2010

I have a Python program looks like this one :

Code: import os
import time
process = os.popen("top").readlines()

[code]...

View 2 Replies View Related

Programming :: C Code Not Running As Expected / Cause Of It?

Apr 27, 2010

I was wondering why this code only returns me the same value ten times instead of valuate the conta+0.1 value code...

View 6 Replies View Related

Ubuntu One :: System Getting Hanged / Solution For This?

May 9, 2011

I am a new user for ubuntu, recently i have updated to 11.04 version last week. When i kept my desktop idle for long time, the system goes down and it didn't wake up at all. I didnt change in the setting for screen saver and power management still. It is system default.

I didnt face this problem when i use version 10. Only the new version i am facing this.

Any solution for this?

View 9 Replies View Related

Debian :: Updating Grub And For Some Reason The System Hanged?

May 30, 2011

I was updating grub and for some reason the system hanged. Going to a tty did not solve any problems. At the end I had to do a hard reboot and came up with the following on the grub boot

reloc offset is out of segment Entering rescue mode grub rescue >

Googling for the above I landed on this page.

[URL]

While I'm going to try the later part, is there anything else I need to know about ?

Didn't have to do much, took the the Squeeze 6.10.a DVD, asked it to run into rescue mode and then did grub-install giving the MBR (hd0) as the place to be. Things worked nice after that.

Upon booting had to run
dpkg --configure -a

and it updated grub to 1.99-5 among other updates. Did not know that Squeeze had a rescue method as well (just like Ubuntu live CDs have). Now just have to wait for Debian to get Live CD/DVD as default

View 2 Replies View Related

Programming :: Interact With The File System By Own C Source-code?

Jun 1, 2010

I'm investigating how to copy a file located in my file system into another device. I googled to find a solution for my case but I didn't find anything. My original problem was to find a way to permit my code to move a file into a USB device. I wonder If is there a way to implement the cp command or some mechanism that permits my code to interact with between the file system on my computer and the second one on USB external driver (FAT32) ?

View 3 Replies View Related

Programming :: Script Exit Code To System() C Function?

Jul 3, 2009

Consider the following code:

Code:
...
int ret=0;

[code]...

View 4 Replies View Related

Software :: Unable To Copy Files From CentOS To Pendrive - System Is Getting Hanged Leaving No Option Then To Reboot

Sep 23, 2009

I am using CentOS 5.3. output of "uname -a" Linux localhost.localdomain 2.6.18-92.el5 #1 SMP Tue Jun 10 18:49:47 EDT 2008 i686 i686 i386 GNU/Linux

My kernal version is kernel-2.6.18-92.el5

Whenver i try to copy files from my centos to pendrive ( 2gb, kingston datatraveller) my system is gettin hanged leaving no option then to reboot. i tried from the terminal also, and as a diffrent user also. but same results. sometimes i can copy files of small size. but when i go above 5 mb..system hangs..

View 1 Replies View Related

Programming :: Selenium Java Code Into Equivalent Php Code?

Mar 30, 2011

I need to rewrite the selenium java code into its equivalent php code.

View 5 Replies View Related

General :: Running Code That Uses Imake?

Jan 20, 2010

I am new to Linux and have asked several Linux enthusiasts about my problem, however I am wondering at this point if it is a lost cause, since many have been unable to help me solve my problem.

I am unable to run a certain C code which uses the obsolete compilation method 'imake'. I would kindly like to ask if there is any way that I can run this code. Am I required to install anything? Or do I have to change the code in some way so that it could run on a more updated compilation method?

View 1 Replies View Related

Ubuntu Multimedia :: Code Blocks Starts But Not Running 10.04?

Aug 9, 2010

I installed code blocks from .deb files, icon of CB was created but when I click on it to start it, it shows only logo of CB and end, please wehe is error?

View 1 Replies View Related

General :: Get List Of Thread Of Running Process Using C Api (in That Code)?

Jan 29, 2010

In short our required is that we are creating a share library which can be loaded by a process and that share library analysis the process which load it. Since share library is in address space of the process so I need to find out how many threads created by the process and what is status of their stack trace etc.

So I am looking for a way to get list of threads in running process.

View 1 Replies View Related

General :: List The Currently Running Processes Via Code A Shell Script?

Feb 5, 2011

how to list the currently running processes via code a shell script. FYI i now about the top method in the terminal but i need a way to have it via a shell script.

View 4 Replies View Related

Ubuntu :: When Code Start Running On Console No Copy Paste

Oct 3, 2010

i configured the build-essential(for c compilation). and I am unable to get the output.This is what i do.(check the image) Since i wanted to copy the output from one of the tty's I tried GPM service. But i dont know how to copy it. Some says click the middle mouse button and it will copy but when i do some code start running on the console. no copy paste. How can i run JAVA programs.

View 9 Replies View Related

General :: Grep Exits Abnormally With Code 123 When Running Rgrep On Emacs

Oct 7, 2010

I'm running GNU Emacs 23.1.1 on "Ubuntu 10.04.1 LTS" and any search I perform using the built-in M-x rgrep on the standard Linux kernel source code (vanilla) ends prematurely with the following error printed to the emacs echo area:Grep exited abnormally with code 123.I have been seeing it for a while on Redhat systems as well, and with other (large) code bases.

View 2 Replies View Related

Programming :: Suid Disabled From Running All Scripts Or Just From Running Them As Root ?

Sep 4, 2009

Is suid disabled from running all home made bash scripts or just from running them as root or:

Who would know for sure.

I googled several combinations of Mandriva Linux how-to suid disabled setUID etc... so far all I found was "many distributions are disabling suid for security reasons" nothing specific.

View 2 Replies View Related

Ubuntu :: Error Creating File System: Helper Exited With Exit Code 1: Cannot Open /dev/mmcblk0p1: Read-only File System

May 2, 2010

I bought a new SD card which I intend to put some MP3s on - except that I can't write to it because it tells me the destination is Read Only. No-probs thinks I: I'll just reformat it.

"Error creating file system: helper exited with exit code 1: cannot open /dev/mmcblk0p1: Read-only file system"

Various chmod commands all result in Read-only file system. I tried umount then mount commands, but it couldn't find it to mount once I'd unmounted it using the same /media/ file path (I assume it's the only one).

View 9 Replies View Related

Programming :: Cron And Fsarchiver Reportedly Running Not Actually Running?

Jun 1, 2010

My root Vixie cron crontab is set to perform a system snapshot via fsarchiver: 0 0 * * * fsarchiver savefs -o -A /backups/p30_root.fsa /dev/sda2 /dev/sda3 The command itself works fine, generating about a 7G snapshot of my Suse server. I then wish to rsync this to a NAS I have located in another building: 0 3 * * * rsync -av -e ssh --delete /backups/ root{at address}:/DataVolume/os_backups/

(yes, I'm rsyncing as root. I absolutely loathe it, but I got thrown into an quasi-SA position with a ridiculous to-do list and no time to do it. I'm having to make things just work and then go back and try to improve them/learn how. I couldn't make it work in a non-root way quick enough, so for now I'm having to cron rsync jobs as root because of all the differing file permissions on this samba/MySql server. I set the NAS to only accepts ssh from the server IP, and we're behind a campus firewall... It's serious trial by fire.) The crontab also has rsync commands for the samba areas, our specialized chemistry software and affiliated MySQL databases............

View 2 Replies View Related

Programming :: Use SSE(2,3) In C/C++ Code?

Jun 6, 2011

I am working on a project with a lot of vector math and I'd like to find a way to speed it up.eading about SSE, but I've found no explanation on how to actually use it in code (was looking for some kind of hello-world example, complete with compilation instructions).Does the gcc compiler automatically make use of SSE, if you add the -sse(2,3) option on the command line? Or are their specific functions/libraries you need to call?

View 12 Replies View Related

Ubuntu :: Internal Disk In A Running System Usb-booted System Does Not Result In The System Detecting The Disk

Feb 27, 2011

My system decided to crash on me, hard. It was humming along happily for about 2 months and now doesn't boot. If I boot from hard-disk, I get grub. Launching the first kernel choice hangs. I thought maybe the install was corrupt, so I booted from usb install disk. The usb hdd didn't boot; something about an error trying to access /dev/sda . Unplugging the internal disk and plugging in the usb install disk does result in the system booting. Plugging in the internal disk in a running system usb-booted system does not result in the system detecting the disk.

How do I know if the disk is physically broken? This seems unlikely since it does manage to launch grub consistently. Or is this still possible? How can I try to mount whatever is left? The usb install disk doesn't even list the /dev/sd*. Any pointers on how to reformat the drive if it's not being mounted?

View 1 Replies View Related

Slackware :: Slack 13.7 KDE Seems Hanged?

Jul 2, 2011

I installed a slack 13.7 on an old laptop. KDE was set as default desktop. then I login and run startx and I saw KDE first screen display. after that I saw blank screen with a mouse on it. Then it stayed there and it seems try read some in my harddisk since the persistent harddisk light.

View 3 Replies View Related

CentOS 5 :: Upgrade From 5.2 To 5.5 Hanged?

May 25, 2010

I did a 5.2 to 5.5 upgrade using the following path

yum clean all
yum update glibc*
yum update yum* rpm* python*
yum clean all

[Code]....

View 6 Replies View Related

Programming :: Code That Will Never Execute

May 23, 2011

Is there, by chance, a fancy name to describe code that must be in a program but will never be executed? In one of my (Haskell) programs, I have some error-handling code that must be in the program to keep the compiler happy (due to the type checking). However I know that, due to the logical structure of the program, it is impossible for the code to be evaluated. I am curious if there is a technical name given to code that must exist but cannot be executed.

View 6 Replies View Related

Programming :: GLX Code Won't Run Anymore?

Jan 14, 2011

I went to compile some "oldish" glx code. The code compiles great but when I go to run it I get a crash. With X Error of failed request: BadMatch (in .....running ddd causes my whole system to lock up when I call the glx function XOpenDisplay. After a few attempts I thought I'd download a demo from the net, I choose nehe opengl tutorial 2, I compiled and ran but even on a net tutorial I get the same error

./lesson02
XF86VidModeExtension-Version 2.2
Got Doublebuffered Visual!

[code]....

View 1 Replies View Related

Programming :: Translating Code To OSX?

Jul 20, 2011

I have the following code:

Code:
#!/bin/bash
function dx {

[Code].....

So essentially, it finds dx files, sorts them by numbers at the beginning, then performs the dx function I made (loops over all of the #-protein.dx and #-water.dx files).

It works fine when I'm running it on Ubuntu 11.04. However, when I try to run it on OSX, I get the following error:

Code:
mh320m01:DA_R02 janickij$ ./MOD_Loop_Tuber_Script.sh
find: illegal option -- t
find: illegal option -- y

[Code]....

View 9 Replies View Related

Programming :: How To Share Code With Others

Jan 5, 2010

I work as a linux sysadmin, and are now and then developing scripts that might be of use for others. I'd like to be able to share these, and for less trivial projects maybe create a central repository or something that others may upload updates/patches to etc.

View 10 Replies View Related

Programming :: How To Combine ASM And C Code

Apr 10, 2010

I have a little test program consisting of a NASM source file and a C source file.How do I turn them into a single program?

Code:
section .data
msg db 'Hello, World!', 10

[code]....

View 14 Replies View Related

Programming :: Three Lines Of Code - What Do They Actually Mean

Feb 23, 2011

whichever source code I go through I find these three lines of code written what do they actually mean and what is their function?

[code]...

View 6 Replies View Related

Ubuntu :: System Crashing 10.04 \ Running Again Is To Press The On/off Button Until The System Powers Off And Restart?

Sep 6, 2010

I am an absolutely beginner with Linux (ubuntu). I got fed up with widows and decided it was time to go. I installed (clean install from a cd) ubuntu 10.04 on my desktop. It is an hp compaq d220 MT.It looks good and feels good, well at least for a while since it keeps crashing. The screen starts to flicker, goes black, and the only way to get it up and running again is to press the on/off button until the system powers off and restart.

View 2 Replies View Related

Software :: Advantage Of Running A 64bit System Over 32bit System?

Dec 11, 2009

What would be the advantage of running a 64bit system over a 32bit system? I only have 3GB of ram but plan on kickin another 1GIG into it. But i wanna try 64bit Linux(probably slackware) on it. But first im just wondering what the advantages are people have seen who have used both 32/64bit linux. Speed? Smoothness? And also what are major disadvantages such as compatibility, configuration, etc.

View 14 Replies View Related







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