From 1b7dd177b7c5374f5ef7d19e74d4eb8d29227fe9 Mon Sep 17 00:00:00 2001 From: Anand Phulwani Date: Sun, 20 Aug 2023 22:28:40 +0530 Subject: [PATCH] Changed ls to dir --- examples/hello_wexpect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/hello_wexpect.py b/examples/hello_wexpect.py index d306bad..5171fca 100644 --- a/examples/hello_wexpect.py +++ b/examples/hello_wexpect.py @@ -15,8 +15,8 @@ child.expect('>') print(child.before, end='') print(child.after, end='') -# run list directory command -child.sendline('ls') +# run dir command to list directory contents +child.sendline('dir') # Waiting for prompt child.expect('>')