ph (1) --- execute subsystem commands in the background 08/17/82 _U_s_a_g_e ph { } _D_e_s_c_r_i_p_t_i_o_n The 'ph' command allows the Subsystem user to execute Sub- system commands in the background while continuing with other work at his terminal. The phantom user feature of the Primos operating system is used to implement this command and Primos must have been configured at startup for phantom users. 'Ph' has two usage formats: In the first format, the commands to be executed are given as arguments. Care should be taken when using this format to enclose in quotes any com- mands that contain the following characters: ( ) [ ] { } # , > | since these meta-characters will otherwise be interpreted by the shell applied to the 'ph' com- mand itself. In the second format, commands are read from stan- | dard input up to the next occurrence of end of | file. This format allows 'ph' to be used at the end of a pipeline. In either case, 'ph' builds a script of commands that will be used to drive the phantom process. Assuming no errors were encountered, 'ph' responds by print- ing the phantom's process id on standard output. _E_x_a_m_p_l_e_s ph rf se.r ph "rf rf.r; fc rf.f" commands> ph _F_i_l_e_s =varsdir=/ph for phantom input file _M_e_s_s_a_g_e_s "=temp= missing" if unable to follow pathname of phantom script. "No free phantoms" if Primos refuses to initiate phantom. ph (1) - 1 - ph (1) ph (1) --- execute subsystem commands in the background 08/17/82 "Can't create phantom temp" if unable to create file to hold phantom script. _B_u_g_s A note on portability: 'ph' takes advantage of a Georgia Tech modification to the Primos operating system that duplicates both current and home directories in the environment of the phantom (the normal procedure is to duplicate only the current directory). In systems that do not have this feature, the first command to be executed by the phantom should be a 'cd' command to attach to the desired directory. Only 4 phantoms may be concurrently in progress on behalf of any single user. Due to Primos restrictions, phantoms cannot be started while the user is attached to a remote disk. _S_e_e _A_l_s_o sh (1), x (1), batch (1), Primos phant$ ph (1) - 2 - ph (1)