Sponsored Content
Top Forums Shell Programming and Scripting Process running time by taking user input Post 302787459 by ajayram_arya on Friday 29th of March 2013 03:50:40 PM
Old 03-29-2013
Code

Would you be able to help me in getting

List of all processes running more that 30 mintures.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

keeping 10 process running at the same time

Hi guys, I neet to run sqlldr to charge about 50,000 files every day to my DWH, so I need to make an script to keep about 100 processes of sqlldr running at the same time. So, the issue is that i've been trying for a few days to make an script which can keep that amount of processes running, so... (2 Replies)
Discussion started by: razziel
2 Replies

2. Red Hat

login process taking a long time

I'm having a bit of a login performance issue.. wondering if anyone has any ideas where I might look. Here's the scenario... Linux Red Hat ES 4 update 5 regardless of where I login from (ssh or on the text console) after providing the password the system seems to pause for between 30... (4 Replies)
Discussion started by: retlaw
4 Replies

3. Shell Programming and Scripting

Problem while taking input from User

Hi All, I am facing a problem while taking input from user in Shell Script. Basically , I want to read a file line by line. And I want to remove certain lines of that file.But before removing those lines , I need to ask the user whether user wants to remove the lines. If user inputs "Yes" , the... (3 Replies)
Discussion started by: swapnil.nawale
3 Replies

4. UNIX for Dummies Questions & Answers

how to get start time of a running process

I am trying to see if a process is running what was its start time. here is the code that I am using if then echo 'Gateway output processing started.' else VAR=$(ps -ef | grep batch_output_x ) ... fi now the problem i see is when the process is running i get two... (3 Replies)
Discussion started by: akabir77
3 Replies

5. Shell Programming and Scripting

Running a process based on time

Hello All, My script is nearly complete, there is just one last piece that needs to be added in. I need to check for the time, and if it is lets say for example. Sunday at 5:00AM, my script cannot run. I would assume it would be something like this, parden the terrible pseudocode ... (7 Replies)
Discussion started by: jeffs42885
7 Replies

6. Shell Programming and Scripting

Taking one input at a time

Legends, Please help me to come out of the below Bermuda triangle. I have four inputs in a shell script: A B C D Now, If A is passed by user then, B C D will be ignored. If C is passed by user, then A B D will be ignored. Regards, Sandy (11 Replies)
Discussion started by: sdosanjh
11 Replies

7. Shell Programming and Scripting

Help with kill a specific process after certain running time

Hi, Do anybody experience to write a bash script in order to kill a specific process (java) after certain time of running? eg. java java.jar task_run.txt I will run a java program (java.jar) which will run a long list of process (task_run.txt) one by one. I plan to terminate the java... (5 Replies)
Discussion started by: perl_beginner
5 Replies

8. Shell Programming and Scripting

Process running more than require time

Frineds I need assistance in writing a script . Newbie to scripting. How to find list of processes that are running more than an hour . Below i used the step to get the etime and stime . Now by getting the result i need to display longer time process with full listing. ps -aef -o... (10 Replies)
Discussion started by: ajayram_arya
10 Replies

9. Shell Programming and Scripting

Bash Question: HowTo Exit Script with User Input While Process is Running Mid-Loop?

Hi, I have written a script that allows me to repetitively play a music file $N times, which is specified through user input. However, if I want to exit the script before it has finished looping $N times, if I use CTRL+c, I have to CTRL+c however many times are left in order to complete the loop.... (9 Replies)
Discussion started by: hilltop_yodeler
9 Replies

10. Shell Programming and Scripting

Get how much time process has been running in seconds

I use this command to get the time elapsed for a process ps -eo pid,pcpu,pmem,user,args,etime,cmd --sort=start_time | grep perl It gives in format 19990 0.0 0.0 user /usr/bin/php 5-09:58:51 /usr/bin/php I need in seconds. Please use CODE tags for sample input and output as well... (2 Replies)
Discussion started by: anil510
2 Replies
SINFO(1)							   User Manuals 							  SINFO(1)

NAME
sinfo - a monitoring tool for networked computers SYNOPSIS
sinfo [-q] [-V] [-W] [-H] [-L] [-h host[:port] ] [-u user ] [-d delay ] [-s] [-o] [-i process ] [-n] [-D] [-t count ] [-i processname ] [-c scale ] DESCRIPTION
sinfo displays some information of the nodes in your local network. For each node the system load, the memory utilization and the `TOP-5' user processes will be displayed. sinfo uses the sinfod(8) to gather these informations. For further details of the internal mechanisms refer to the sinfod(8) manual. OPTIONS
-q/--quiet be quiet - don't display startup informations. -V/--version Print the version number and exit. -W/--wwwmode Web-mode: List all hosts and their informations in html-format and exit. Look at sinfo.pl.cgi for a sample cgi-script. -H/--hostsmode List all host names of nodes running a sinfod(8) and exit. -I/--ipmode List all IPs of nodes running a sinfod(8) and exit. --hostsandipmode List all host names and IP addresses of nodes running a sinfod(8) and exit. -L/--loadmode List all known host names with the current system load and exit. -h/--host <host[:port]> Fetch information from the sinfod(8) running on `host' instead of localhost. You may also specify the port number of the sinfod(8) your are connecting to. This option may be useful in cases where ssh(1) or similar programs are used to tunnel the connection from sinfo(1) to sinfod(8) through a firewall. It is possible to use multiple -h option to connect to more than one sinfod to monitor more than one network with one sinfo process. If your want to set different delays for the connections -d has to be specified prior to the corresponding -h options. $ sinfo -h localhost:60001 (the default values) $ sinfo -h 127.0.0.1:60001 (... if you want to set an IP-address directly) $ sinfo -h my.computer.at.work (port 60001 will be used as default on my.computer.at.work) $ ssh -q -C me@my.computer.at.work -L 60002:my.computer.at.work:60001 (establish the tunnel) $ sinfo -h localhost:60002 (connect through the tunnel) $ sinfo -h localhost -h host.on.another.net (connect two demons to join the sinfo broadcasts of two networks) --udp / --tcp Use UDP(default) or TCP to connect to sinfod. -u/--user <user> Highlight all processes of `user' instead of using environment variable $LOGNAME. -d/--delay <delay> Set the delay (in seconds) between two updates. Default is one second. --filtermarker <marker> Request only informations matching <marker>. -s/--systeminfo Include system information (resolved by a uname -a call) in the list. -o/--own Only display your own processes or the processes owned by user '-u user' (this overrides the '-t count' setting). -i/--ignore <process> Don't display <process> ; --ignore may be set multiple times. -n/--netload Display network load. -D/--diskload Display disk load (buffer allocation rate) of locally connected disks. -t/--top <count> Restrict the number of processes displayed to `count'. -c/--scale <scale> Set the scaling of the CPU load bars to "log", "lin" or "full". KEYBOARD COMMANDS
q Quit sinfo. PageUp, PageDown Scroll the screen by one page. UpArrow, u; DownArrow, d Scroll the screen by one line. Home Jump to the top line. s Toggle display of system informations. o Toggle display of your own processes. n Toggle display of network informations. D Toggle display of disk load. t Toggle display of the TOP n processes. c Toggle the scaling of the CPU load bars form "log", "lin" to full. EXIT CODES
The exit codes used by sinfo are: 0 everything OK 1 Connection to sinfod failed. ENVIRONMENT
HOSTNAME Highlight $HOSTNAME in sinfo's output. LOGNAME Used to determine the name of the user which processes shall be highlighted. May be overridden by the -u option. TERM The name of your terminal. Used to select escape sequences out of the terminfo(5) database. AUTHOR
Juergen Rinas <jrinas@gmx.de> SEE ALSO
sinfod(8),sshallsinfo(1) Linux JANUARY 2005 SINFO(1)
All times are GMT -4. The time now is 04:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy