Hello, I have a question about spawning processes.
If I have a command called "command1" for example, and it has a system call that spawns "command2", it would be easier for us (with the system that we're thinking of using) to have "command2" be defined before "command1" in the command file. Are we allowed to assume that when a spawn syscall is used in the command file, the command is already defined earlier in the command file?
It might be confusing to understand what I'm trying to write. Here's some example command files (this thing won't let me use tabs, so I'm using 4 spaces):
command1
10usecs spawn command2
command2
10usecs sleep 1000usecs
In the above command file, command1 calls command2, however, command2 is defined after command2.
command2
10usecs sleep 1000usecs
command1
10usecs spawn command2
In this command file, command1 calls command2, and command2 is defined before command1.
Am I allowed to assume that command files will be similar to the 2nd example?