#!/usr/bin/python # # This file contains definitions that describe the output of your esh. # # You may adapt all settings in this file to match the output of your # shell. (Alternatively, you may write your shell to match these templates.) # # the shell executable. shell = "./esh" # the prompt printed by your shell prompt = "esh>" custom_prompt = "esh>|custom prompt>" # # simple regular expression to match anyout # as username and datestr # entry_regex = "(\S+)\s+(\S+)\s+(.+)\r\n" result_regex = "(\S+\s\S+\D\S+)\s+(.+)\r\n" # # command usage messages # cmd_usage_msg = { 'usage' : "Usage:uinfo [-h] [username]" } # # builtin commands # If your shell requires a % before the jobid, use %%%s. # builtin_commands = { 'uinfo' : 'uinfo %s' } # Uncomment this line if you like stdriver.py to keep a log of everything # input and output to the pty in file 'log.txt' # #logfile=open("uinfo_log.txt", "w")