Path: utzoo!utgpu!water!watmath!clyde!att!ihlpm!jmdavis From: jmdavis@ihlpm.ATT.COM (Davis) Newsgroups: comp.sys.amiga.tech Subject: Lattice's fork function Keywords: fork, task, help! Message-ID: <2386@ihlpm.ATT.COM> Date: 2 Oct 88 22:34:21 GMT Organization: AT&T Bell Laboratories - Naperville, Illinois Lines: 28 I thought I would try writing a simple multitasting program, however it doesn't work. The program is "time", it times the execution of a program. It works similar to the UNIX(r) time command. That is you enter "time command" and the program forks the "command" portion, taking the time before the fork and after the fork. I am using Lattice 4.01's version of fork and version 34.1 of ARP. Time without a parameter will return a usage statement. "time time" works fine as does "time microemacs" (from the 1.2 extras), however, "time dir" prints the contents of the directory and then gurus, "time cd" crashes before printing, and "time echo hello" won't even fork the process. I know I could try the "system" call, but I would like to know if I am misunderstanding something. (I suspect that fork doesn't do as much housekeeping as I had hoped.) Thanks -- ________________________________________ | Mike Davis | ..!att!ihlpm!jmdavis |_________________________