| description |
code |
| The file is read and parsed as an `expect` command file, the content of the first invalid line is returned in an error message. Thus, this might not be suitable to read arbitrary binary files. |
LFILE=file_to_read
expect $LFILE
|
|
|
| code |
| expect -c 'spawn /bin/sh;interact' |
|
|
| code |
| ./expect -c 'spawn /bin/sh -p;interact' |
|
|
| code |
| sudo expect -c 'spawn /bin/sh;interact' |
|
|