public class help extends VMachine { public help() { } public void run() { try { sysapi.Write(OUT,"-List of Available System Commands-\n\n"); sysapi.Write(OUT," terminates current shell.\n"); sysapi.Write(OUT," creates a new user in a new console window.\n"); sysapi.Write(OUT," waits for current user's programs to finish and then ends user session.\n"); sysapi.Write(OUT," creates new user.\n"); sysapi.Write(OUT," creates a new shell as a child of current shell.\n"); sysapi.Write(OUT," list's the current user's processes.\n"); sysapi.Write(OUT," displays the system time.\n"); sysapi.Write(OUT," sends messsages to a user.\n"); sysapi.Write(OUT," retrieves messages from user mailbox.\n"); sysapi.Write(OUT," sends messsages to a process.\n"); sysapi.Write(OUT," gets one message from a process message queue.\n"); sysapi.Write(OUT," displays system commands.\n"); sysapi.Write(OUT,"\n----File System Commands----\n"); sysapi.Write(OUT," lists specified file.\n"); sysapi.Write(OUT," edits specified file.\n"); sysapi.Write(OUT," creates a new directory.\n"); sysapi.Write(OUT," removes specified directory.\n"); sysapi.Write(OUT," removes specified file.\n"); sysapi.Write(OUT," copies specified file to specified filename.\n"); sysapi.Write(OUT," lists contents of current directory.\n"); sysapi.Write(OUT," changes current directory.\n"); sysapi.Exit(vmh,owner); } catch (Exception err) { System.out.println("Sample threw an Exception."); } } }