How can I get the file info of my process?ugent!!!!!


 
Thread Tools Search this Thread
Top Forums Programming How can I get the file info of my process?ugent!!!!!
# 1  
Old 07-02-2003
How can I get the file info of my process?ugent!!!!!

my project is very big,has many module and sub procedure that
written by others,so how to get info of thel file opened or unclosed in my project ?
I think there are two ways:
1. with pid_t get process info ,and via file table ( /usr/include/sys/file.h) to check file info.
2. in very beginning of project ,catch all detail of file table,
and recheck it in the end of project ,so I can tell how many
file were opened and how many were not closed .


but I do not know how to do it !!!
Could you help me!!! Thanks!!!
# 2  
Old 07-02-2003
It seems to me that this would be something you would ask the head of your project (read teacher). See rule six

Quote:
Date Registered: 07-02-2003
Status: Junior Member
Total Posts: 1 (1 posts per day)
Last Post: 07-02-2003 04:49 AM
How can I get the file info of my process?ugent!!!!!
Contact nsun: Click here to email nsun
Occupation student
# 3  
Old 07-02-2003
meanless!

Thanks for reply!
but I got there for helping not for how to work or live.
if your do know ,please tell me answer .
if your do not know ,do not say " go to ask your teacher ..
go to ask your manager..."etc, please!!!!

it's not a situation of rule 6, and if you insist,everyone,every question is the same situation,cause we alway got problem in
studying or working ;
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Monitoring processes in parallel and process log file after process exits

I am writing a script to kick off a process to gather logs on multiple nodes in parallel using "&". These processes create individual log files. Which I would like to filter and convert in CSV format after they are complete. I am facing following issues: 1. Monitor all Processes parallelly.... (5 Replies)
Discussion started by: shunya
5 Replies

2. Shell Programming and Scripting

Inputing info from a CSV file and filling a template file

Hi, I have a .csv file that contains a variety of fields for 60 clients: USERNAME, PASSWORD, and COMMENTS. I have a template file which contains a great deal of data for each client and has the fields USERNAME, PASSWORD, and COMMENTS that has to be filled with the values of USERNAME,... (1 Reply)
Discussion started by: mojoman
1 Replies

3. Shell Programming and Scripting

Add column info from one file to larger second file

Hi, long time reader, first time poster. I've done some searching so please if this is a repeated post excuse the duplicate, but what I have are two files roughly like so: File 1: A W B X C Y D Z File 2: A 1 C 2 D 3 And what I would like to get out is... (4 Replies)
Discussion started by: wallysb01
4 Replies

4. UNIX for Dummies Questions & Answers

kill/pkill process by CMD info.

I have a process that I'd like to kill. Doing a "ps -fu myusername" gives me: UID PID PPID C STIME TTY TIME CMD myusername 5443 1 0 10:05 ? 00:00:00 /bin/sh /some/path/crap.sh -s /yet/another/path/parentProcess myusername 5593 5443 0 ... (2 Replies)
Discussion started by: mrwatkin
2 Replies

5. AIX

How to access process and cpu info on AIX?

Hi, may be this is an AIX noob question: my current C++ application runs on Linux and is quite memory consuming. Therefore, the application writes a logfile after it has finished containing memory information, CPU information, information on the running other processes besides my application... (5 Replies)
Discussion started by: DarthVader77
5 Replies

6. Programming

process info

Can any one tell me how does 'ps' command get information about the processes from operating system data structures? (4 Replies)
Discussion started by: clintoo
4 Replies

7. Shell Programming and Scripting

Finding & Moving Oldest File by Parsing/Sorting Date Info in File Names

I'm trying to write a script that will look in an /exports folder for the oldest export file and move it to a /staging folder. "Oldest" in this case is actually determined by date information embedded in the file names themselves. Also, the script should only move a file from /exports to... (6 Replies)
Discussion started by: nikosey
6 Replies

8. Programming

Getting process info in a program

Hi, I am wondering if there is a way to find out in a C software program if a particular process is running without having to write a file. In the past, I have been using the system command to execute a pgrep and output the info to a file. Then the C program reads the file to make the... (1 Reply)
Discussion started by: herbmiller
1 Replies

9. Linux

Linux process info

Hello, I had a back job scheduled to run at 2 am in the morning in my crontab. I found out that the job did not initiate and there were no logs dumped as to the reason for the failure to initiate. I found the process had started but failed to trigger the job and it had actually hung because it... (2 Replies)
Discussion started by: nayeemmz
2 Replies

10. UNIX for Dummies Questions & Answers

file activity (open/closed) file descriptor info using KORN shell scripting

I am trying to find a way to check the current status of a file. Such as some cron job processes are dependent on the completion of others. if a file is currently being accessed / modified or simply open state I will wait until it is done being processed before attempting the next process on that... (3 Replies)
Discussion started by: Gary Dunn
3 Replies
Login or Register to Ask a Question