4.8. The Shell

 < Day Day Up > 

The rt command-line tool supports a shell mode, which launches an interactive shell for running actions. The primary advantage is that you don't have to wait for the client to start up on each command it's already running and waiting for your input. To enter the shell, give the shell action to rt.

     $ rt shell     rt> 

The syntax and options for actions in the shell are the same as on the command line, except you skip the initial rt. You display a ticket with show:

     rt> show ticket/42 -f id,queue,subject,status,priority     id: ticket/42     Queue: General     Subject: A special number     Status: open     Priority: 90     rt> 

modify it with edit:

     rt> edit ticket/42 set priority=80     # Ticket 42 updated.     rt> 

and check your work with show again:

     rt> show ticket/42 -f id,subject,priority     id: ticket/42     Subject: A special number     Priority: 80     rt> 

Quit the RT shell session by typing ^C (Control-C).

     < Day Day Up > 


    RT Essentials
    RT Essentials
    ISBN: 0596006683
    EAN: 2147483647
    Year: 2005
    Pages: 166

    Similar book on Amazon

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net