Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to know the end of a process

Status
Not open for further replies.

xavier64

Technical User
Nov 18, 2002
12
FR
Hi,

i've got a long exec to run (between 1 to 10 mins).

If i call my exec 'normaly' (exec $command) the window is freezed. The display is not updated. So, is there a solution for refresh the window.

If i run it in background (exec $command &),the window is well refresh, but i don't know how to get the end of the process.

thanks,

le bayonnais
 
Try "update" to refresh the windows. Bob Rashkin
rrashkin@csc.com
 
Ok, but i need to know how to get the end of a background process

thanks,

le bayonnais
 
Either use a lockfile that is destroyed at the end of
the program execution, or build a poll procedure using
your platforms process id utilities.

For win32 tlist.exe and kill.exe are available.
For *nix ps and kill are useful.

You will have to kludge this as is no one right way.
 
It is exactly what i need, but tlist.exe is not avaible on my platform (NT4 Workstation)

is it possible to know a "dos" command doing the same thing (like ps in Unix)

Thanks a lot,

Xav
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top