Sponsored Content
Top Forums Shell Programming and Scripting Command to get exact tomcat process I am running ignoring other java process Post 303007473 by rbatte1 on Friday 17th of November 2017 04:49:12 AM
Old 11-17-2017
Are you saying that you get process for other users, you are seeing a grep process listed or something else entirely? I can't tell from your description.

Please show us the output (pasted in CODE tags) and then we can see what we're working with.




Thanks, in advance,
Robin
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to create a dummy process of a process already running?

Hi Everybody, I want to create a shell script named as say "jip" and it is runned. And i want that when i do ps + grep for the process than this jip should be shown as process. Infact there might be process with name jip which is already running. (3 Replies)
Discussion started by: shambhu
3 Replies

2. Shell Programming and Scripting

script to monitor process running on server and posting a mail if any process is dead

Hello all, I would be happy if any one could help me with a shell script that would determine all the processes running on a Unix server and post a mail if any of the process is not running or aborted. Thanks in advance Regards, pradeep kulkarni. :mad: (13 Replies)
Discussion started by: pradeepmacha
13 Replies

3. UNIX for Dummies Questions & Answers

How to get the start time for a JAVA Main running process

I have a script that executes a MAIN JAVA FILE It does check if the process is already running or not by using this code w_pid=`ps -efx | grep -v grep | grep "FileTransactionArchiveMain dvlp"|awk '{print $11}'` if then #echo 'Another instance is running.' exit fi Now I... (1 Reply)
Discussion started by: akabir77
1 Replies

4. Shell Programming and Scripting

Running a command in a new process?

Hello I'm using GNU screen for an application that I'm making. I will try to explain: This application opens 2 screen session, A and B. Screen session A has a script running in teh first window. I want to be able to switch from screen session A to screen session B, from the script running in... (1 Reply)
Discussion started by: jondecker76
1 Replies

5. UNIX for Dummies Questions & Answers

How a process can check if a particular process is running on different machine?

I have process1 running on one machine and generating some log file. Now another process which can be launched on any machine wants to know if process1 is running or not and also in case it is running it wants to stream the logs file generated by process1 on terminal from which process2 is... (2 Replies)
Discussion started by: saurabhnsit2001
2 Replies

6. BSD

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (0 Replies)
Discussion started by: naveeng
0 Replies

7. UNIX for Advanced & Expert Users

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (1 Reply)
Discussion started by: naveeng
1 Replies

8. UNIX for Advanced & Expert Users

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (6 Replies)
Discussion started by: naveeng
6 Replies

9. Shell Programming and Scripting

How to find the exact process using ps aux command?

Please do not post a technical question in the @How to contact....' forum. I have moved this for you. Hello Everyone, Please help me on this, Requirement here is to check whether the process is running using the process id. For the below scenario, I m trying to grep 1750 process id to... (3 Replies)
Discussion started by: Hari A
3 Replies
DEBTAGS(1)                                                    General Commands Manual                                                   DEBTAGS(1)

NAME
debtags - Command line interface to access and manipulate Debian Package Tags SYNOPSIS
debtags [options] <command> [options and arguments] DESCRIPTION
debtags manages package tag data in a debian system and performs basic queries on it. debtags can be used to perform basic queries on the Debtags system: the vocabulary can be queried with the tagshow and tagsearch commands; a package tag database can be checked against the vocabulary with the check command; the whole collection can be copied to standard output to be processed with tagcoll or other tools by the cat command; packages can be searched by tags using the grep command. Finally, tags can be listed with tag ls, edited with the tag add and tag rm, and submitted to the Debtags database with submit. The update command can be used to download extra tags as listed in /etc/debtags/sources.list: see the contents of that file for more infor- mation. COMMANDS
debtags accepts a non-switch argument, that indicates what is the operation that should be performed: help [command] With no arguments, print a summary of available commands. If given a command name as argument, print detailed informations about that command. cat output the full package tag database check <file> check that all the tags in the given tagged collection are present in the tag vocabulary. Checks the main database if no file is specified diff or mkpatch [filename] create a tag patch between the current tag database and the tag collection [filename]. Standard input is used if filename is not specified dumpavail [tag expression] output the full package database grep <tag expression> output the lines of the full package tag database that match the given tag expression. A tag expression (given as a single argument) is an arbitrarily complex binary expression of tag names. For example: role::program && ((use::editing || use::viewing) && !works-with::text) search <tag expression> output the names and descriptions of the packages that match the given tag expression show <pkg> show informations about a package, like apt-cache show does, but adding the tag informations from the debtags index submit [patch] upload the given patch file to the central tag repository. If [patch] is omitted, mail the local tag modifications (uses deb- tags-submit-patch) tag {add|rm|ls} <package> [tags...] General manipulation of tags, useful for automation in scripts. It can be used in three ways: tag add <package> <tags...> will add the tags to the given package tag rm <package> <tags...> will remove the tags from the given package tag ls <package> will output the names of the tags of the given package tagcat output the tag vocabulary tagshow show the vocabulary informations about a tag tagsearch <string [string [string ...]]> show a summary of all tags whose data contains the given strings update Collect package tag data from the sources listed in /etc/debtags/sources.list, then regenerate the debtags tag database and main index. It needs to be run as root vocfilter tagfile filter out the tags that are not found in the given vocabulary file OPTIONS
This program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). Every one of the commands listed above has its own set of options. To keep this manpage readable, all the options are presented together. Please refer to "debtags help command" to see which options are accepted by a given command. Help options: -h, -?, --help print commandline help and exit. --version print the program version and exit. --manpage=[hooks] output the debtags manpage and exit. Other options: -v, --verbose enable verbose output. --debug enable debugging output (including verbose output). Options for command help Options for command cat Options controlling matching of packages: -i, --invert invert the match, selecting non-matching items. Options controlling transformations of tag data on output: --facets output only the names of the facets (mainly used for computing statistics). --names output only the names of the packages. -q, --quiet do not write anything to standard output. Options for command check Options for command diff Options for command dumpavail Options controlling matching of packages: -i, --invert invert the match, selecting non-matching items. Options controlling transformations of package data on output: --names output only the names of the packages. -q, --quiet do not write anything to standard output. --full output the full record of package data. --short output the names of the packages, plus a short description. Options for command grep Options controlling matching of packages: -i, --invert invert the match, selecting non-matching items. Options controlling transformations of tag data on output: --facets output only the names of the facets (mainly used for computing statistics). --names output only the names of the packages. -q, --quiet do not write anything to standard output. Options for command search Options controlling matching of packages: -i, --invert invert the match, selecting non-matching items. Options controlling transformations of package data on output: --names output only the names of the packages. -q, --quiet do not write anything to standard output. --full output the full record of package data. --short output the names of the packages, plus a short description. Options for command show Options for command submit Options for command tag Options for command tagcat Options for command tagshow Options for command tagsearch Options for command update --local do not download files when performing an update. --reindex do not download any file, just do reindexing if needed. Options for command vocfilter --vocabulary=file vocabulary file to use instead of the current debtags vocabulary. EXAMPLES
Here are some example invocations of debtags: # Update the package tag database debtags update # Show apt-cache informations about the mutt package, # adding tag informations debtags show mutt # Search the tag vocabulary for mail-related tags debtags tagsearch mail # Output a list of all packages which can edit raster images, excluding # shared libraries and dummy packages debtags search "use::editing && works-with::image:raster && ! (role::shared-lib || role::dummy)" # Show all mail clients debtags search 'works-with::mail && network::client' # Output the collection of all mail clients, ready to be reprocessed via # tagcoll debtags grep 'works-with::mail && network::client' # Produce an easily navigable hierarchy with the collection data debtags cat | tagcoll hierarchy # Produce a local tag patch debtags cat > work-tags ...edit work-tags... debtags diff work-tags > my-tagpatch # Submit the patch debtags submit my-tagpatch FILES
/var/lib/debtags/vocabulary The normative tag vocabulary /var/lib/debtags/package-tags The system package tags database, only kept as an easily parsable reference. In the same directory there is a the binary index with the same content, used by applications for fast access. /etc/debtags/sources.list The list of sources to build the package tags database from SEE ALSO
tagcoll(1), axi-cache(1), http://wiki.debian.org/Debtags http://debtags.debian.net AUTHOR
debtags is maintained by enrico@enricozini.org. This manpage has been automatically generated by the debtags program. 1.10 June 21, 2012 DEBTAGS(1)
All times are GMT -4. The time now is 06:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy