zsh/zpty

Jun. 8th, 2006 05:31 pm
ocehb: (Default)

# zmodload zsh/zpty
# zpty B ssh host -l user
# zpty -w B "Password"
# until zpty -rt B; do zpty -r B line; print line; done
Last login: Thu Jun  8 17:09:30 2006 from home
user@host:~ (1000) 
# zpty -w B ls -alF /usr/local
# until zpty -rt B; do zpty -r B line; print line; done
total 96
drwxr-xr-x  12 root root 4096 Dec 20 10:20 ./
drwxr-xr-x  15 root root 4096 Dec 20 10:56 ../
drwxr-xr-x   2 root root 4096 Dec 20 10:56 bin/
drwxr-xr-x   2 root root 4096 Aug 12  2004 etc/
drwxr-xr-x   2 root root 4096 Aug 12  2004 games/
drwxr-xr-x   2 root root 4096 Aug 12  2004 include/
drwxr-xr-x   2 root root 4096 Aug 12  2004 lib/
drwxr-xr-x   2 root root 4096 Aug 12  2004 libexec/
drwxr-xr-x   3 root root 4096 Dec 20 10:20 man/
drwxr-xr-x   2 root root 4096 Aug 12  2004 sbin/
# zpty -d B

Profile

ocehb: (Default)
ocehb

January 2021

S M T W T F S
     12
345 6789
10111213141516
17181920212223
24252627282930
31      

Syndicate

RSS Atom

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 30th, 2025 09:15 pm
Powered by Dreamwidth Studios