Idea needed regarding process related script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Idea needed regarding process related script
# 1  
Old 07-21-2012
Idea needed regarding process related script

I want to write a script which will take two time as input parameters and display the details of running processes between the two times, any ideas about the script ?
# 2  
Old 07-22-2012
So all you want to display the script details? Are those scripts scheduled already? If so, how are they scheduled, using at/cron?

If not, do you want to trace the jobs that are going to run in future?
# 3  
Old 07-22-2012
Quote:
Originally Posted by PikK45
So all you want to display the script details? Are those scripts scheduled already? If so, how are they scheduled, using at/cron?

If not, do you want to trace the jobs that are going to run in future?
Nopes buddy, you are not getting me. My main motto is to trace down the details of the processes between certain fixed times in past/present. For this , I want to write a shell script.
# 4  
Old 07-22-2012
Could you be more specific and could you give examples of input, desired output and your ideas so far?
# 5  
Old 07-23-2012
Quote:
Originally Posted by Scrutinizer
Could you be more specific and could you give examples of input, desired output and your ideas so far?
Input will be :-

Enter Starting Time - 12 pm
Enter Ending Time - 2pm

Output will be :

Following processes run between 12 pm and 2 pm

Output of ps -aef containing all process details between that time.
# 6  
Old 07-23-2012
What OS are you on?
Do you have a date command that supports the -d option eg:
Code:
$ date -d "12pm"
Mon, Jul 23, 2012 12:00:00 PM

Also, does ps -e -o start_time,user,pid,ppid,tty,time,args work on your OS?

Last edited by Chubler_XL; 07-23-2012 at 12:51 AM..
# 7  
Old 07-23-2012
You would need to record "process accounting" information first..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Idea for master thesis related to Linux : Redhat.

Hello Team, I am on last semestr on my studies. I have a problem with choosing right thesis topic. Do You have maybe any ideas for thesis related to Linux area? I really need your help - the most important thing is that there should be research element in the topic because of master degree... (3 Replies)
Discussion started by: protos27
3 Replies

2. Shell Programming and Scripting

Question related to bash. Your help needed.

Dear Team, i have one question related to automation of adding new users based on txt file. Here we go: I have data.txt file which shows: bang dang benc One by one, after pressing enter. And now, I need scirpt which will add those users with home directory hidden within the file... (7 Replies)
Discussion started by: protos27
7 Replies

3. UNIX for Advanced & Expert Users

AIX idea needed to check the logs updated date and time

Hi with the help of Gabriel canepa, i have just edited filename only in his code. The help which i got and he helped is 1) I have around 22 logs and each log should be updated in the last 24 hours from the current timestamp. 2) It should check for ERROR message (not error,Error) in the log and... (2 Replies)
Discussion started by: Kalaihari
2 Replies

4. UNIX for Dummies Questions & Answers

SSI related Unix In (link) support needed

I have multiple web sites and have SSI all working fine! but I want a script that allows me to place a SSI script (or .html) on any web site within my server - One problem, SSI is limited to files located within the file structure - I want to access a file outside, (but still on my server) I found... (1 Reply)
Discussion started by: johnzule
1 Replies

5. Shell Programming and Scripting

need a new idea for a script

Hi all, I now have project in UNIX Solaris and I want to have some new ideas to execute it, so I hope you help me finding new ideas in scripting or some infrastructure .bye (1 Reply)
Discussion started by: hard_revenge
1 Replies

6. Solaris

Query related to boot process of Solaris x86

I am a linux user and trying to relate Solaris x86 boot process with that of Linux.. Please correct me if wrong with my understanding on Solaris x86 booting process: 1.POST by BIOS. 2.BIOS loads mboot program from MBR of the hard disk. 3.mboot loads Grub stage1 from /boot/grub/stage1 4.Grub... (0 Replies)
Discussion started by: saagar
0 Replies

7. Solaris

Solaris 10 network, process, database related comands

Hi everbody, Can anyone let me know the resources for list of network, process, database related commands of solaris10 possibly with little bit of explanation. Thanks in advance, Chandra Sekhar. (1 Reply)
Discussion started by: chandoo.java
1 Replies

8. Shell Programming and Scripting

Script Idea's / Help

Hi there, I'm pretty new to scripting and wondering if anyone had any idea's, scripts or snippets on how I can do the following. I basically want a shell script that will look at all the files in a directory and find all the names and addresses in them then output them to the screen nicely... (12 Replies)
Discussion started by: mrpugster
12 Replies

9. UNIX for Advanced & Expert Users

DOS messaging question - related to UNIX process problem

Hi, This is a strange request. I know there is some sort of crude DOS tool that allows you to communicate to another PC either using its IP adress or PC name. But I can't remember where aor what its called, any ideas? Reason for asking here, Someone has telnet'd on a UNIX server I have... (0 Replies)
Discussion started by: nhatch
0 Replies

10. Shell Programming and Scripting

Limitations of awk? Good idea? Bad idea?

Keeping in mind that I'm relatively comfortable with programming in general but very new to unix and korn/bourne shell scripts.. I'm using awk on a CSV file, and then performing calculations and operations on specific fields within specific records. The CSV file I'm working with has about 600... (2 Replies)
Discussion started by: yongho
2 Replies
Login or Register to Ask a Question