Index: main/asterisk.c =================================================================== --- main/asterisk.c (revision 348152) +++ main/asterisk.c (working copy) @@ -2842,7 +2842,7 @@ printf(" -T Display the time in [Mmm dd hh:mm:ss] format for each line\n"); printf(" of output to the CLI\n"); printf(" -v Increase verbosity (multiple v's = more verbose)\n"); - printf(" -x Execute command (only valid with -r)\n"); + printf(" -x Execute command (implies -r)\n"); printf(" -X Execute includes by default (allows #exec in asterisk.conf)\n"); printf(" -W Adjust terminal colors to compensate for a light background\n"); printf("\n"); @@ -3336,7 +3336,7 @@ ast_clear_flag(&ast_options, AST_OPT_FLAG_FORCE_BLACK_BACKGROUND); break; case 'x': - ast_set_flag(&ast_options, AST_OPT_FLAG_EXEC | AST_OPT_FLAG_NO_COLOR); + ast_set_flag(&ast_options, AST_OPT_FLAG_EXEC | AST_OPT_FLAG_NO_COLOR | AST_OPT_FLAG_REMOTE); xarg = ast_strdupa(optarg); break; case '?':