Debian Programming :: Script Doesn't Stop And Just Hangs
May 16, 2014
The script below doesn't stop sickbeard, and just hangs. I really can't figure out why.
#!/bin/sh
### BEGIN INIT INFO
# Provides: SickBeard
# Required-Start: $network $remote_fs $syslog
# Required-Stop: $network $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
[Code] ...
View 1 Replies
ADVERTISEMENT
Jun 11, 2011
I have just install debian squeeze in my old laptop (HP nx6120). Everything works fine except for the fan. When it boots up, the fan is really silent but after a few of minutes it starts working and doesn't stop at all. The CPU usage is low (1%) with 53MB/512MB of used RAM.This is how I install Debian:_ During the installation, I chose to install the "laptop" and "base system" categories (the last 2 categories of package)._ I use FluxBox as my graphical environment and Slim as login manager.I have Ubuntu installed before and it didn't happen so I think this is a configuration problem
View 1 Replies
View Related
Apr 24, 2011
http://ubuntuforums.org/showthread.php?t=1567415
Tried all methods to no avail in 10.10 x32/64. Is there a real fix and why does this happen?
View 3 Replies
View Related
Dec 19, 2010
I'm running Ubuntu 10.10, 64-bit on an HP 8740w. Sometimes (I don't have the frequency yet, but it has happened a half-dozen times in the past couple of weeks) when I insert a USB storage device the system hangs, requiring a power-cycle. I have been careful to either eject or "safely remove" every USB device, but it still happens. I believe it only happens when I remove a device and later re-insert it, but I don't have enough data points to be sure.
Most of the time, I'm running VirtualBox, but I haven't captured the USB device in a VM.
First question - how can I go about figuring out what might be going wrong? Once it happens, my options are extremely limited (power switch). When this happened one time I left the system for 30+ minutes, and it did not recover.
Of course, when I wanted to see it, I did 10 insertions/removals without a hang.
View 9 Replies
View Related
May 27, 2011
I have a box running Ubuntu 11.04 (natty). I have never run memetest before. Then, randomly, when starting up today, it ran memtest. Because memtest86+ is on a loop, it doesn't stop unless you stop it. So I tried restarting the machine - no good. It simply starts memtest again and runs the same testing loop. I cannot find any setting in the BIOS to disable memtest. how I can stop/disable memtest so I can USE my computer??
View 1 Replies
View Related
Feb 24, 2010
Every time I've tried to install 9.10, it will not run. I get "Grub - " and it just hangs there. I shouldn't have to deal with that. Why can't I just have a happy install like usual? 9.10 / Grub2 is not stable and it needs fixing. Grub2 sucks. It's in beta and no-one tells you that unless you do some looking. I've tried to fix it, can't. Linux really sucks for me right now.
View 3 Replies
View Related
Jan 10, 2010
I'm running debian (AMD64 dist), and I recently upgraded via aptitude to KDE 4.3.4.After the upgrade I found that I could no longer start X (using startx from my user account).I am, however, able to launch kdm from a root command line and log in as a user to X this way (graphically).I want to run startx as a user and I cannot figure out where the hangup is. I've looked in my Xorg.0.log files comparing .old to current and nothing stands out. After I launch 'startx' the screen goes black and the computer waits. I can hit ctrl-alt-f2 and bring back the text-mode terminal screen; it's at a point where it looks like X is working. From there, I can control-c it and get back to the command prompt.
I'm thinking this is a software configuration thing but I don't know enough about how all the systems tie together to figure out where the problem is.
View 5 Replies
View Related
Jan 30, 2011
i have a habit of frequently changing my desktop themes in gnome desktop. off late i found that whenever i close the appearance settings window, the process diesnt seem to stop and it becomes a runaway process, increasing fan speed in my laptop and ofcourse the temp that shoots beyond 70, every time i change the theme i have to issue top command in terminal, identify the gnome-appearance process id and kill it. the instant i kill it, temp drops down to 32 / 32....
View 1 Replies
View Related
Oct 22, 2009
I just updated to the new drivers. In my Xorg.0.log file, it doesn't show any errors. It just stop at a black screen. This might be a new bug with the binary drivers.
View 6 Replies
View Related
Feb 26, 2011
i'm writting a program, that creates semaphores and shared memory. It asks from the user to give anything to write in the shared memory. Now, i want this program to do this,not only once, but repeat, and stop as soon as the user gives the word "quit". i added a while loop, but i don't know how to stop the program.
View 13 Replies
View Related
Jun 8, 2011
I'm developping a C# app in Windows using VS2010. It has one form and communicates as a client with a server.A receive thread displays incoming data while buttons and a timer send data. All workingThe form has a button that calls the below method to disconnect from the server.
Code:
public bool disconnect()
{
[code]...
View 2 Replies
View Related
Apr 27, 2011
I have a signal handler in my tool, which is registered and used between some particular interval (i am using timer). Now this signal handler should NOT allow any other handler to be registered or invoked after this handler is once registered. Is there any way to accomplish this?
[code]...
View 6 Replies
View Related
Oct 21, 2009
Im using PHP and Sun Solaris to do something for Squid Proxy Server. im using......
- LAMP / SAMP
- Linux / Solaris 10
- Squid Server
- PHP
actually i need to know that someone knows about how to start/stop Squid Service using PHP code.
View 2 Replies
View Related
Jan 14, 2010
When I start my shell it hangs (somehow, it's being put to sleep) and I always have to control-cancel the shell before using it. Anyone know of a way to figure out what gets started on a typical shell session?
View 1 Replies
View Related
Jan 19, 2010
So I wrote a function in a class that logs the user in:
public function UserLogIn($username,$password){
if (!isset($username) || !isset($password)) {
header(Location: ../dev/index.php);
}
[Code]....
I've tested it on Linux (Ubuntu and Debian) and it works perfectly on Firefox 3 and Opera 9.5 on those two distributions. On Mac however, it hangs on both Firefox 3 and Safari. I have also tested it on Windows using Internet Explorer 7 and Firefox 3. why it hangs on Mac?
View 1 Replies
View Related
May 5, 2009
I have developed a proprietary multithreaded application using Qt library version 4.2.1 on RHEL 4 platform. The application communicates with different external interfaces using serial communication using well defined protocols. For each system I have a thread that handles data acquisition and processing, it sets an update flag which is read by the GUI thread to update GUI after specified number of seconds. The incoming data from external systems is processed and updated on GUI at certain intervals. Each system update rate on GUI is different. Generally it is 1 second. Their rate of sending data is different and is generally 1Hz, 5 Hz and 10 Hz. For systems with string data I have no issues. But some systems send raw data and I have to process every byte of the entire packet, for which I have to use for loops. Now my problem is if I keep the update rate of GUI for such systems less than a fixed number of seconds (which I have to calculate by hit and trial) the application hangs after sometime. I have tested this system exlusively by switching of all other systems and it hangs standalone.
This leads me to conclude that timing of GUI update is what is causing the application to hang. Also I read somewhere on the net that in multithreading application timers play an important role and slight variation in timing can lead to hung applications. As of now I have kept 5 seconds as the GUI update time and app runs fine. Can somebody suggest something else which might be the cause?Note that I have used mutexes, wait conditions and all necessary tools which are used in multithreading app. But it is only the timer on which I could pin down the issue.
View 6 Replies
View Related
Nov 29, 2010
I have a problem with programming serial port lines. my issue is that i must toggle and read single lines like rts and cts. but my program stops at the line when i open the port. here my sampe:
Code:
int port;
int i;
port = open("/dev/ttyS0", O_RDWR);
[Code].....
when I start the program it hangs on the open-function. I have tried ps with grep for ttyS0 but there is nothig found. Why hangs this function and gives me no error?
If I use ttyS1, it works. where is the problem and why I can't get an error?
target is an embedded system with busybox.
View 2 Replies
View Related
Dec 7, 2010
I have data that looks similar to this -
Quote:
John Smith (Address)
123 Main St
Unit 1
[code].....
So I need everything between each name, but I am not guaranteed that each time I match a name that I will have the same amount of lines, so I do a range pattern search line this to get all lines, no matter if there is 5 or 10 or 15. I simply do a loop that goes through the whole array until I hit the match, and this is my search pattern.
Code:
if ($LINE =~ /^s+$SELECTED_NAME/ ... $LINE =~ /(Address)/) {
push @ADDRESS_INFO, $LINE;
}
This works perfectly... until I hit the end and it doesn't get its final pattern match because it's at the end and there is no next entry with a (Address) line. So as a 'hack', I ended up inserting a final scalar at the end of the array that just says (Address) so it knows it's at the end. Ideally though, I'd like to do an "or" statement that says search for Address || return true if I hit the end of the array. How would I match on "End Of Array" essentially?
View 1 Replies
View Related
Oct 28, 2010
A thread-aware version of gdb receives a system notification when a thread starts in the app it is debugging. GTK+ has hidden threads associated with loading icons into menus. So trying to debug a GTK+ program, even one that is apparently single-threaded, can produce a deadlock between gdb, the app and XWindows. The app (actually GdkPixbufLoader) grabs the focus, the mouse and the keyboard and then starts a thread when a menu is opened. If gdb has trouble with threads, it leaves the app blocked but still holding the mouse, et. al. Then you can't talk to gdb or any other GUI interface. To make gdb happy, all GTK+ apps need to be linked with -pthread, if you have the source. If not, gdb cannot be used. In order to break the deadlock, you need a non-GUI shell. If your /etc/inittab starts agetty, mingetty, or the like, and you can get to it with <CRTL><ALT><F3...F6>, you can do a kill -KILL <pid> on the offending app, recover and then go back to XWindows with <CTRL><ALT> <F1/F2>. Otherwise it's reboot time.
View 3 Replies
View Related
May 16, 2011
i have a server program which accept multiple client connection and am using polling. like every 2 secs it will look to client whether any data is received after it binded. i have used setitimer but there is runtime error i got.. the server accept all client connection but doesn't execute any msg which client sent.
#include<stdio.h>
#include<stdlib.h>
#include<sys/socket.h>
#include<sys/types.h>
#include<netdb.h>
#include<unistd.h>
#include<pthread.h>
#include<string.h>
[Code]....
View 1 Replies
View Related
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
Jul 17, 2011
How do I get this loop to stop on each increment? This script does work but I would like it to stop at each increment, remember what the value of $n is, then continue until it gets to 7. I have worked so hard on this. My brain is hurting now.
[Code]...
View 2 Replies
View Related
Jul 23, 2011
My program is creating 4 threads per transaction. Threads doing nothing but simply sleeping.
Now, when transaction ends, I want to wake up all the threads from sleeping. For this I am using pthread_kill() to wake up the threads using signal SIGUSR2.
Problem raises when I put more transactions(eg. 100 trans). My process gets hangup.
View 3 Replies
View Related
Sep 6, 2010
how to make a script that will check service/s status whether running or stop and also will run stop services?
View 9 Replies
View Related
Aug 17, 2009
I have installed Oracle 11g on 5.3. Now, I am trying to START and STOP oracle automatically on system startup and shutdown. I am following this link To have this effect, I have created /etc/init.d/dbora
Code:
#!/bin/sh
# chkconfig: 345 99 10
ORA_HOME=/oracle/app/oracle/product/11.1.0/db_1
[code]....
View 4 Replies
View Related
Jun 16, 2010
I have startup scriptsI want to test themI need a script to do the followingstart restart stop for 100 times (or i can set how many cycle)
View 1 Replies
View Related
Jul 16, 2010
I'm writing a Bash script to take IPTC keywords from a text file and write them, via Exiv2, to several (first batch is 100) JPEG files in a single directory. The script has one while loop inside another while loop, both terminated, but I'm pretty sure that's not my problem. I think it's how I'm incrementing the "counter" variable, although it could also be the method of parsing the text lines from the file (using cut with delimiters that have worked fine in simpler scripts).
Here's the code as I've worked it up to this point.
Code:
And yes, "keywords" checks out in Crimson Editor, Emacs GUI and nano as an ASCII file with UNIX line endings. No issues on that score.
Feeding each line consecutively into a terminal (excepting the exiv2 command) works fine: each variable echoes with the part of the text line used as a variable value as it should, even when the b variable is incremented the quick&dirty way (up arrow three commands and hit enter).
Running the above script in eval mode (sh -x) stalls after setting the b variable to one and reading in the first line of text. I'd like to know why. I'd also like some advice on another reliable method of parsing the read-in lines.
View 14 Replies
View Related
Mar 21, 2011
I have used CentOS for a while and have never run into this issue. I searched all over and didn't see a similar issue anywhere, I did an install of CentOS as a server (no GUI) with only the base. Partition is /boot ext3, size of 100MB. The rest of the drive is partitioned as / with ext3. This is being done on a CompactFlash card of 32GB in size. The BIOS sees it as an IDE drive.
When the install completes and the system reboots, the grub stops at the grub> prompt. There is no menu for OS options. If I do the following commands:
grub>root (hd0,0)
grub>kernel /vmlinuz-2.6.18-194.el5 root=LABEL=/
grub>initrd /initrd-2.6.18-194.el5.img
grub>boot
View 19 Replies
View Related
May 29, 2015
Tried doing Code: Select allsystemctl lxc stop but it hangs with no output. I've tried letting it go overnight, no luck.
strace on the systemctl pid shows:
Code: Select allppoll([{fd=3, events=POLLIN}], 1, NULL, NULL, 8
Tried lxc-stop on my containers and it just hangs as well. apt-file shows no lxc-kill package available.
I just want to restart my containers. Debian 8.
View 3 Replies
View Related
Apr 14, 2016
I am not referring to the bash history file. I am referring to the system log file. All of my console activity (letter for letter) is being stored in the system log. It's my understanding that version 4.1 of bash is where this behavior first started but was originally optional. I don't like it and I want to stop it. I am using a current version of jessie with bash 4.3 and I can find no way of turning it off
Monitoring the activities of users may be necessary .for admins in a business environment but this is a home computer and I consider this kind of tracking intrusive and unwanted.
I first noticed this with the journal system log and mistakenly though it had to do with journal so I removed the journal system and installed dsyslog which has the same behavior.
Perhaps debian should offer two versions of bash. It's my understanding that this is configured in a header before compiling.
View 4 Replies
View Related