Sponsored Content
Top Forums Shell Programming and Scripting kill process from a file or directly with top Post 302499824 by chandro on Friday 25th of February 2011 01:10:09 PM
Old 02-25-2011
thanks to all.



Last edit..... Reason: Use code tags, please...

sorry, im going to do it
 

10 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

how to kill process from file

hello i want to write a script in unix which read file that contains : hour and process_id like this file bbb: 0:30 6678 1:40 8789 and for every line he check if the hour greater then 30 minutes he kill the process_id the script looks like this cat bbb | while read line do ... (1 Reply)
Discussion started by: naamas03
1 Replies

2. Shell Programming and Scripting

how to kill process from file

i have a script that read a file which contains process_id and time that he's in and it lookes like this 0:30 54545 0:44 66788 0:90 23233 i need to read every line in the file and get the time and if the process is greater then 0:30 to kill the process id the script looks like... (17 Replies)
Discussion started by: naamas03
17 Replies

3. UNIX for Advanced & Expert Users

When kill doesnt work, how to kill a process ?

Hi All, I am unable to kill a process using kill command. I am using HP-UX system. I have tried with kill -9 and i have root privilages. How can i terminate this daemon ? ? ? Regards, Vijay Hegde (3 Replies)
Discussion started by: VijayHegde
3 Replies

4. Linux

Kill a process without using kill command

I want to Kill a process without using kill command as i don't have privileges to kill the process. I know the pid and i am using Linux 2.6.9 OS. (6 Replies)
Discussion started by: sudhamacs
6 Replies

5. UNIX for Dummies Questions & Answers

top output for a specific process to a file

Hi, I have the following script, and it is driving me nuts. It just hangs, I've tried all kinds of tricks, but it won't work. I know it can, it is pretty straight forward. It hangs when it tries to output $X Any help appreciated! #!/bin/bash set -o xtrace command="top -b"... (10 Replies)
Discussion started by: Bloke
10 Replies

6. Shell Programming and Scripting

Kill an specific process ID using the KILL and GREP commands

Good afternoon I need to KILL a process in a single command sentence, for example: kill -9 `ps -aef | grep 'CAL255.4ge' | grep -v grep | awk '{print $2}'` That sentence Kills the process ID corresponding to the program CAL255.4ge. However it is possible that the same program... (6 Replies)
Discussion started by: enriquegm82
6 Replies

7. Shell Programming and Scripting

Kill top 5 memory uses process

Hi All, how to kill 5 top memory used process in my hp-ux. Thanks, Kki (9 Replies)
Discussion started by: kki
9 Replies

8. Shell Programming and Scripting

Soft kill a process to redirect the last kbytes output to a file

Hey guys, I have a python script that I call with this line: python mypythonscript.py >> results.csv &The problem is that the redirection from the stdout to the file results.csv only writes 4096 kbyte blocks. So if i kill this process with kill the last kbytes that the script produce will... (6 Replies)
Discussion started by: Mastaer
6 Replies

9. Shell Programming and Scripting

How to kill the process when the file is locked?

I was trying to read the file to create a table in SAS and I got error as follows while I read. Resource is write-locked by another user. File =/usr/sas/sas_config/Lev1/SASApp/StoredProcessServ​er/Logs/SASApp_STPServer_2015-09-29_tmp_18208.log. System Error Code = 0. ERROR: File is in... (10 Replies)
Discussion started by: Ram Kumar_BE
10 Replies

10. Shell Programming and Scripting

Shell script to report file size, pid and also kill the process

Hi All, Looking for a quick LINUX shell script which can continuously monitors the flle size, report the process which is creating a file greater than certain limit and also kill that process. Can someone please help me on this? (4 Replies)
Discussion started by: vasavimacherla
4 Replies
edoc_extract(3erl)					     Erlang Module Definition						edoc_extract(3erl)

NAME
edoc_extract - EDoc documentation extraction. DESCRIPTION
EDoc documentation extraction. DATA TYPES
edoc_env() = edoc_env() (see module edoc_lib) : filename() = filename() (see module file) : proplist() = property() (see module proplists) : syntaxTree() = syntaxTree() (see module erl_syntax) : t() = t1() : Some docs of t/0; Further docs of t/0. The same thing using -type: -type t() :: t1(). % Some docs of t/0; Further docs of t/0. EXPORTS
file(File::filename(), Context, Env::edoc_env(), Options::proplist()) -> {ok, Tags} | {error, Reason} Types Context = overview | package Tags = [term()] Reason = term() Reads a text file and returns the list of tags in the file. Any lines of text before the first tag are ignored. Env is an environ- ment created by edoc_lib:get_doc_env/4 . Upon error, Reason is an atom returned from the call to file:read_file/1 . See text/4 for options. header(File::filename(), Env::edoc_env(), Options::proplist()) -> {ok, Tags} | {error, Reason} Types Tags = [term()] Reason = term() Similar to header/5 , but reads the syntax tree and the comments from the specified file. See also: header/4 , edoc:read_comments/2 , edoc:read_source/2 . header(Forms, File::filename(), Env::edoc_env(), Options::proplist()) -> {ok, Tags} | {error, Reason} Types Forms = syntaxTree() | [syntaxTree()] Tags = [term()] Reason = term() Extracts EDoc documentation from commented header file syntax trees. Similar to source/5 , but ignores any documentation that occurs before a module declaration or a function definition. (Warning messages are printed if content may be ignored.) Env is assumed to already be set up with a suitable module context. See also: erl_recomment(3erl) , header/5 . header(Forms, Comments::[comment() (see module edoc)], File::filename(), Env::edoc_env(), Options::proplist()) -> {ok, Tags} | {error, Rea- son} Types Forms = syntaxTree() | [syntaxTree()] Tags = [term()] Reason = term() Similar to header/4 , but first inserts the given comments in the syntax trees. The syntax trees must contain valid position infor- mation. (Cf. edoc:read_comments/2 .) See also: erl_recomment(3erl) , header/3 , header/4 . source(File::filename(), Env::edoc_env(), Options::proplist()) -> {ModuleName, edoc_module() (see module edoc)} Types ModuleName = atom() [term()] Like source/5 , but reads the syntax tree and the comments from the specified file. See also: source/4 , edoc:read_comments/2 , edoc:read_source/2 . source(Forms, File::filename(), Env::edoc_env(), Options::proplist()) -> {ModuleName, edoc_module() (see module edoc)} Types Forms = syntaxTree() | [syntaxTree()] ModuleName = atom() Extracts EDoc documentation from commented source code syntax trees. The given Forms must be a single syntax tree of type form_list , or a list of syntax trees representing "program forms" (cf. edoc:read_source/2 . Env is an environment created by edoc_lib:get_doc_env/4 . The File argument is used for error reporting and output file name generation only. See edoc:get_doc/2 for descriptions of the def , hidden , private , and todo options. See also: erl_recomment(3erl) , source/5 , edoc:read_comments/2 , edoc:read_source/2 . source(Forms, Comments::[comment() (see module edoc)], File::filename(), Env::edoc_env(), Options::proplist()) -> {ModuleName, edoc_mod- ule() (see module edoc)} Types Forms = syntaxTree() | [syntaxTree()] ModuleName = atom() Like source/4 , but first inserts the given comments in the syntax trees. The syntax trees must contain valid position information. (Cf. edoc:read_comments/2 .) See also: erl_recomment(3erl) , source/3 , source/4 , edoc:read_comments/2 , edoc:read_source/2 . text(Text::string(), Context, Env::edoc_env(), Options::proplist()) -> Tags Types Context = overview | package Tags = [term()] Returns the list of tags in the text. Any lines of text before the first tag are ignored. Env is an environment created by edoc_lib:get_doc_env/4 . See source/4 for a description of the def option. SEE ALSO
edoc AUTHORS
Richard Carlsson <richardc@it.uu.se > edoc 0.7.7 edoc_extract(3erl)
All times are GMT -4. The time now is 12:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy