diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-07-28 12:19:04 -0700 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2009-06-18 20:18:24 +0100 |
commit | 57fb974856b9ae143ca5642e279d181a45bbdd10 (patch) | |
tree | 5008d2b2fc2b061747d7afaf27c4f3f197f8ed93 /vtysh/vtysh.h | |
parent | 0fbd62a17c53f1e2695c0f96ffb437cd079abacb (diff) |
[vtysh] Make vtysh more useable for scripting
Add environment variable (VTYSH_LOG) for logging.
If a command fails, exit with non-zero exit code and don't
continue multipart commands.
Diffstat (limited to 'vtysh/vtysh.h')
-rw-r--r-- | vtysh/vtysh.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vtysh/vtysh.h b/vtysh/vtysh.h index 3ed0dd32..e711d593 100644 --- a/vtysh/vtysh.h +++ b/vtysh/vtysh.h @@ -42,8 +42,8 @@ extern int vtysh_connect_all (const char *optional_daemon_name); void vtysh_readline_init (void); void vtysh_user_init (void); -void vtysh_execute (const char *); -void vtysh_execute_no_pager (const char *); +int vtysh_execute (const char *); +int vtysh_execute_no_pager (const char *); char *vtysh_prompt (void); |