Currently I am doing ATM Network Simulation for my final project. The ATM
Network Simulator is running in Linux using X-Windows but at the same
time it can be run without using X-Windows in background mode. Every time
the simulator finished running, it produces an output file in the same
directory and it is in this form "SIM_SNAP.XXX". The "XXX" is a number (3
digit). I think the number is the process id. If it is the process id
then how can I read this file without knowing the process. I am
running the simulator from another C program that is I am calling
the.exe file using exec() function. How can I read the output file
which the name is not specified???
Can anyone guide me???
Thanks...
____ ____ ___
/\ _`\ /\ _`\ /\_ \
\ \,\L\_\ \ \ \L\ \ __ \//\ \ __ ___
\/_\__ \ \ \ _ <' /'__`\ \ \ \ /'__`\ /' _ `\
/\ \L\ \ __ \ \ \L\ \/\ \L\.\_ \_\ \_/\ \L\.\_/\ \/\ \
\ `\____\/\_\ \ \____/\ \__/.\_\/\____\ \__/.\_\ \_\ \_\
\/_____/\/_/ \/___/ \/__/\/_/\/____/\/__/\/_/\/_/\/_/