diff options
Diffstat (limited to 'example/irsh')
-rwxr-xr-x | example/irsh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/example/irsh b/example/irsh new file mode 100755 index 0000000..029c8c8 --- /dev/null +++ b/example/irsh @@ -0,0 +1,11 @@ +#!/depot/path/expect -- + +# Do rsh interactively. For example, consider the following command: +# rsh <remote> ls -l "|" more +# where it would be nice to get a listing page by page + +spawn -noecho rlogin [lindex $argv 0] +set timeout -1 +expect "% " ;# customize appropriately +send "[lrange $argv 1 end];exit\r" +interact |