LinuxQuestions.org
Visit Jeremy's Blog.
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 01-17-2006, 03:45 AM   #1
vjkchary
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Rep: Reputation: 0
Unhappy ps cmd has TTY as "?"


Hi,

When I give the command "ps -ef | grep java" to see if my tomcat is running.. I find that the TTY column shows up as "?". What does this mean. My application then would work. I am killing this process and starting tomcat again. Please help. Thanks.

With Regards,
vjkchary.
 
Old 01-17-2006, 03:59 AM   #2
T.Hsu
Member
 
Registered: Jan 2005
Posts: 178

Rep: Reputation: 31
That means the process is not attached to a controlling terminal.
 
Old 01-17-2006, 04:20 AM   #3
vjkchary
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Original Poster
Rep: Reputation: 0
can we recover from this

Hi,

Can we recover from this.. I mean is there any other way to get my tomcat running, other than to kill the process and restart it again.

Regards,
vjkchary.
 
Old 01-17-2006, 05:20 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Tomcat, being a webserver program, should run independently of anyone's terminal window.
So, why would you like to kill it?

Many programs run without a TTY (a terminal window) associated to them. That's normal
for services like ftp, http (web), etc.

Furthermore, if your "ps" lists tomcat, then it is already running.

But how do you run it exactly? Using a script in /etc/init.d? As a daemon?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
for ps cmd tty comes as "?" vjkchary Programming 2 01-17-2006 09:04 AM
Differences of "make" in Kdev and cmd line srisner Linux - Software 1 12-23-2004 10:44 AM
SpamAssassin Error "spamd: no response to STREAM cmd, Success" and other errors PlorkZ Linux - Software 1 11-18-2004 05:16 PM
Is there an equivalent cmd to "chkconfig (redhat)" in Debian? davidas Debian 3 04-08-2004 11:54 PM
CSH: "cmd >& file" or "cmd </dev/null >& file" stefanlasiewski Programming 1 09-08-2003 05:19 PM


All times are GMT -5. The time now is 10:39 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration