How do i simulate tab key press in my perl script

Abhilasha Source

I have this line in my pm file .this will execute "show table system stp" command on cli (like pressing enter) but i want to press tab and get suggestions and store those suggestions in an array. How do i simulate tab keystroke through command??

my @I1Profile = $Obj->execCmd("show table system stp");

this command is using some of the library functions.Can anyone tell me how to simulate tab key on cli through perl automation which would give possible completion on cli in general?



comments powered by Disqus