General :: Can't Find ./prog.sh Start - Unable To Kill Manually Using Command
Nov 3, 2010
I'm trying to figure out how to operate a rather large Java program, 'prog'. If I go to its /bin/ dir and configure its setenv.sh and prog.sh to use local directories and my current user account. Then I try to run it via "./prog.sh start". Here are all the relevant bits of prog.sh:
[code]...
When I actually do ./prog.sh start, it starts. But I can't find it at all on the process list. Nor can I kill it manually, using the same command the shell script uses. But I can tell it's running, because if I do ./prog.sh stop, it stops (and some temporary files elsewhere clean themselves out).
[code]...
the process is running yet not in any way listed by the system. I can't find it in ps or /proc/, nor can I kill it. But the shell script can still stop it properly. So my question is, how can something like this happen? Is the process supremely hidden, actually unlisted, or am I just missing it in some fashion? I'm trying to figure out what makes this program tick.
the process is mcelog. When I do as root kill -9 2323 which is pid of mcelog the process is not killed. I tried doing the same from top, press K and enter pid of mcelog. doing ps auwx | grep mcelog I see there are several results. I tried killing all of them like kill -9 2355 2341 3425 2345. But re-running the above commands still shows them as running. How else would I troubleshoot this to avoid restarting of the box.
I am unable to start apache on my linux machine with following errors Starting httpd: Syntax error on line 117 of /etc/httpd/conf/httpd.conf: Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration I am using CentOS5 with apache version httpd-2.2.13
I am developing a daemon that is acting up and I am now unable to create any new processes (ie. I cannot start a new process to kill the other rogue processes). So, I need to be able to kill the processes from a remote machine. How do I do "kill" remotely without admin privileges? If I cannot kill my own process from a remote machine as a normal user then tell me so I can mark it as the correct answer.
Using Ubuntu 11.04. I use this command to kill frozen Flash processes ...
Code: pgrep -P1 -f 'npviewer.bin' | xargs kill -9 IF there are no hung processes, I get the error ... Code: Usage: kill pid ... Send SIGTERM to every process listed.
Possible Duplicate: Finding the process that is using a certain port in Linux I'm using Ubuntu Linux 11.04. How do I write a shell script expression that will find the process running on port 4444 and then kill the process?
just installed iptraf and was using it. However, I lost the SSH link while IPTRAF was running. Now when I try to go into detailed statistics it says: detailed interface stats alreday monitoring eth0. How do I stop that so I can start it again? I tried kill and the process id which I found using pidof iptraf but it won;t stop the program.
Being used to KDE (Suse), I really like the ability to click on the "start" menu, and being able to immediately type in to search for a program/file/link, which then brings up the options and you can just click on one.Is there any way to do a similar thing in Ubuntu/Gnome?
I tried my best on searching for the answer to this question. I couldn't find the right command to start another XServer. Maybe I just don't know how to look for it, or I'm using the wrong keywords. Anyway, what I want to happen is hit CTRL+ALT+F6 (F7 to return to my desktop) and start another XServer to run a full screen game. How do i do that? Is it possible to have multiple instances of X?
By the way, the error says that an instance of x server is already running on display 0 after I have issued this command: Code: startx In case you're wondering why this is my solution, it's because scripting is not my type for automatically making an xserver when I click a game, especially if you'd have to do it for all other games :/ So, let's stick to my idea D unless it's impossible, of course. EDIT: I was able to get a new xserver with xterm in it, but it seems there is no acceleration or some sort >.< OpenLieroX runs at a frame rate of 15 fps or so. Anyone have an idea on how to enable acceleration on openbox?
I just moved my / from sda1 to an ide drive, hde1. i dont see how this could have caused any of these issues, but it did.
First my network card failed to start. i added a line in my rc.local file (where i put all of my additional programs, etc i want to start):/etc/rc.d/rc.inet1
The above now starts my network card with my static ip configured. dhcpcd also worked but i wanted this static.
Now samba will not start. i have the following line in my rc.local: /etc/rc.d/init.d/samba start
This used to work just fine. at first i thought that samba may be trying to start before my network card gets an ip, but the line is *after* the network startup line. just to make sure, i made an additional script called startsamba which contained a sleep 60 followed by samba start, to delay the startup of samba even further.
The message samba reports is very vague, something like failed - core dumped. most of the core dump log is garbage characters, but here is the beginning which seems like it might contain some info:
Code:
ERROR: Can't log to stdout (-S) unless daemon is in foreground (-F) or interactive (-i) after the system starts, i can drop to a console and type "/etc/rc.d/init.d/samba start" and the service starts just fine. i've also tried starting samba manually with "smbd -d" which also produces the core dump when started from rc.local, but not when started from a console after startup.
I know that I can use the GUI (gnome-volume-properties) enable/disable the USB sticks/disks automount features, by checking/unchecking the pertinent options.My question is: how can I obtain the same results from the command line (that is, without using any GUI frontend)?
I recently installed a software package that needs a command called 'daemon' to be able to start up. Slackware doesn't seem to have this command and I'm unable to find it. Where can I get it and what exactly is it that it does?
how do i make "picasa" the default program for viewing my photoes.im now using "google chrome" as my prefered browser,instead of firefox,much better imho,
I remember a friend of mine was able to get my computer to boot under CUI, and the command 'start x' started the GUI. with booting up my computer through CUI.
Last night my system rebooted and dropped screen resolution to 800*600. I was unable to change that from no where. I tried to install nvidia driver and now no gui, only command line. Starting xorg by using 'startx' fails. How I can get back to normal with normal resolution?At the moment I am logged in via live cd. Let me know if any log files needed (if I can locate those).
I am trying to attach my server to 2 diferent networks, with fixed ip addresses, eth0 = 192.168.0.2 255.255.255.0 with gateway 192.168.0.1. This is currently working, and I can ssh o the machine on this address
eth1 = 192.168.150.5 255.255.255.0 with gateway 192.168.150.1
When I try and start eth1 with ifconfig eth1 up, I get the error message "eth1: unknown interface: no such device"
I have configured eth1 using system-config-network-tui and /etc/sysconfig/networking/devices/ifcfg-eth1 looks correct
I have 4 Linux machines with cluster.My target is to find all kind of IP address (xxx.xxx.xxx.xxx) in every file in the linux system remark: need to scan each file in the linux system and verify if the file include IP address if yes need to print the IP as the following
I am trying to do a find/grep/wc command to find matching files, print the filename and then the word count of a specific pattern per file. Here is my best (non-working) attempt so far:
Is there a way to specify to find that I only want text files (and not binary files)? Grep has an option to exclude binary files, so I thought find probably has a similar feature, but I've been unable to find it.
I am able to start up firefox just fine out of my terminal, but i have not been able to find any list of arguments that can be added in the command line. what i'm looking for is that it starts up in Full Screen mode right off. is there an argument that can be added to ti to do that?
I know how to search for normal files but can you let me know " How to search for 5 setuid files on the system. Also explain, for each file, why setuid mechanism is necessary for the command to function properly"
am new to linux and trying to find a file in sub directories using find command as:find .-name *.jpg -type fBut I am unable to get the result as find command is not permitted by the server administrator.Is there any way to find files without using find command.