LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-20-2004, 11:00 PM   #1
LinuxRam
Member
 
Registered: Jul 2004
Distribution: Red Hat 9, Mandrake 9.2
Posts: 211

Rep: Reputation: 30
Process running but not running


I am using cable internet,

When i tried to connect to it through command line

./crclient -u press then it gives me following message

process already running with processid 1101

but when i do ps -x to kill that process, there no such process
running.


??
 
Old 08-20-2004, 11:12 PM   #2
gizmo_thunder
Member
 
Registered: Apr 2004
Posts: 101

Rep: Reputation: 15
just type kill -9 1101
i mean just try running that program again..
and type kill -9 <the number you get>
hope this helps
 
Old 08-20-2004, 11:12 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
That most likely means that the process uses
a pid-file to indicate it's active. You must have
killed it hard at some stage so it didn't have a
chance to remove the pid-file. Find the file, remove
it, and it will work again.


Cheers,
Tink
 
Old 08-21-2004, 12:47 PM   #4
LinuxRam
Member
 
Registered: Jul 2004
Distribution: Red Hat 9, Mandrake 9.2
Posts: 211

Original Poster
Rep: Reputation: 30
pid-file

Where to look for pid file,

I tried in /var/run/ and else where also

but couldn't get it. plz tell me.
 
Old 08-21-2004, 03:24 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
I don't know crclient, and I don't know whether
you invoked it as root or normal user. Chances
are that it's in the programs working-directory
or somewhere in /tmp if it isn't a system-daemon.


Cheers,
Tink
 
Old 08-21-2004, 04:16 PM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
If you're stuck trying to locate the PID file you can strace the program (strace <program command>) and see what files it opens. The output from the strace might be a bit difficult to interpret but if you grep for open in it you should find what you're looking for.
 
Old 08-22-2004, 04:18 AM   #7
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi
to kill the process
what u can try is

go to the /proc directoryu
delete the directory of the name "1101" the pid of the process u want to kill

seee if it works
regards
gaurav
 
Old 08-24-2004, 12:39 PM   #8
LinuxRam
Member
 
Registered: Jul 2004
Distribution: Red Hat 9, Mandrake 9.2
Posts: 211

Original Poster
Rep: Reputation: 30
Quote:
If you're stuck trying to locate the PID file you can strace the program (strace <program command> ) and see what files it opens. The output from the strace might be a bit difficult to interpret but if you grep for open in it you should find what you're looking for.
[akshat@akshar crclient]$ strace <crclient
usage: strace [-dffhiqrtttTvVxx] [-a column] [-e expr] ... [-o file]
[-p pid] ... [-s strsize] [-u username] [command [arg ...]]
or: strace -c [-e expr] ... [-O overhead] [-S sortby] [command [arg ...]]
-c -- count time, calls, and errors for each syscall and report summary
-f -- follow forks, -ff -- with output into separate files
-F -- attempt to follow vforks, -h -- print help message
-i -- print instruction pointer at time of syscall
-q -- suppress messages about attaching, detaching, etc.
-r -- print relative timestamp, -t -- absolute timestamp, -tt -- with usecs
-T -- print time spent in each syscall, -V -- print version
-v -- verbose mode: print unabbreviated argv, stat, termio[s], etc. args
-x -- print non-ascii strings in hex, -xx -- print all strings in hex
-a column -- alignment COLUMN for printing syscall results (default 40)
-e expr -- a qualifying expression: option=[!]all or option=[!]val1[,val2]...
options: trace, abbrev, verbose, raw, signal, read, or write
-o file -- send trace output to FILE instead of stderr

Quote:

I don't know crclient, and I don't know whether
you invoked it as root or normal user. Chances
are that it's in the programs working-directory
or somewhere in /tmp if it isn't a system-daemon.
Yes, i am doing it as a root. I found some of the pid- file in /var/run/ but couldn't able to find crclient pid-file. Even it is not in its working directory nor in tmp directory.

Help me i am not ablt to run internet through linux. I have to go to window to use my internet.


Quote:
go to the /proc directoryu
delete the directory of the name "1101" the pid of the process u want to kill
there is no such directory of this process.



Help me i am not able to run internet through linux. I have to go to window to use my internet.

 
Old 08-29-2004, 12:41 PM   #9
LinuxRam
Member
 
Registered: Jul 2004
Distribution: Red Hat 9, Mandrake 9.2
Posts: 211

Original Poster
Rep: Reputation: 30
For moderators,

what should i do when my problem is not solved like this one.
 
Old 12-27-2004, 10:04 PM   #10
manishsnehi
LQ Newbie
 
Registered: Dec 2004
Posts: 8

Rep: Reputation: 0

Hey Man!!! Did ur problem solve??? I am facing the same problem...But dono how to get rid of it...

Plz help me yaar...

My email id is : manishsnehi@rediffmail.com
manish_mukhija@yahoo.com

 
Old 12-28-2004, 02:08 AM   #11
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hey
could u post the O/P of

ps -aux|grep <program name>

like this
[root@gaurav root]# ps -aux|grep xmms
Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root 3675 0.6 3.2 47008 8296 ? S 13:29 0:03 xmms -e
root 3919 0.0 0.2 3580 576 pts/2 S 13:38 0:00 grep xmms


regards
 
Old 12-29-2004, 10:34 AM   #12
manishsnehi
LQ Newbie
 
Registered: Dec 2004
Posts: 8

Rep: Reputation: 0
Cool Final Solution

Hey Man!!!
I searched a lot....

I found that there was a problem in the previous version....


:
Here is the URL : http://sourceforge.net/projects/cyberoam/


Download the new version and enjoy...

-----------------------------------------------------------------------------
If Ur Problem resolves, dont forget to give thanx to me...
 
Old 12-29-2004, 10:36 AM   #13
manishsnehi
LQ Newbie
 
Registered: Dec 2004
Posts: 8

Rep: Reputation: 0
Cool Final Solution

Hey Man!!!
I searched a lot....

I found that there was a problem in the previous version....


:
Here is the URL : http://sourceforge.net/projects/cyberoam/


Download the new version and enjoy...

-----------------------------------------------------------------------------
If Ur Problem resolves, dont forget to give thanx to me..
 
Old 12-29-2004, 10:45 AM   #14
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

but still the main queation of the thread remains....

regards
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running a process during boot anegbi Linux - Software 3 11-30-2005 03:08 AM
Unnecessary process running Swift&Smart Linux - Software 2 12-05-2004 03:36 AM
Running process sonu1082 Linux - Software 2 11-25-2004 05:32 AM
background running process elbriga Programming 2 09-21-2004 06:08 PM
Process not running LinuxRam Linux - Newbie 4 09-09-2004 12:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration