FW: Cannot find process
Net Llama!
netllama
Fri Oct 13 08:10:15 PDT 2006
On Fri, 13 Oct 2006, David Bandel wrote:
> On 10/13/06, Dirk Moolman <DirkM at agilitytech.co.za> wrote:
>> Hi, I have a strange issue. We run a script in SLES9 (SP3), which runs
>> a couple of other scripts and programs, etc.
>>
>> When we start the process (it does not run in the background), and open
>> another session, and do a "ps -ef | grep <processname>", the process
>> does not show.
>>
>> I have never seen this before. Any ideas why this would be happening ?
>>
>>
>
> We didn't ignore you. I doubt many here are familiar with sles9
> scripts, so we also don't know why you don't see the process in the
> process table. You should see the script plus any external programs
> the script runs (at least, that's normal with a shell or perl script).
> Perhaps sles9 runs the script under a different name?
Its also possible that this script is running with a different process
name than you expect. If you comment out all the other scripts that the
parent script is spawning, does the parent script appear in ps output?
Which user is running this script?
If you background the script (by adding a trailing & to the initial
command) you'll get the PID printed out when it starts.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lonni J Friedman netllama at linux-sxs.org
LlamaLand http://netllama.linux-sxs.org
More information about the Linux-users
mailing list