2023-04-06 12:50:22 +00:00
|
|
|
---
|
|
|
|
sidebar_label: Process.waitForLineOutput
|
|
|
|
---
|
|
|
|
|
|
|
|
# Process.waitForLineOutput() method
|
|
|
|
|
|
|
|
#### Signature:
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
class Process {
|
|
|
|
waitForLineOutput(regex: RegExp, timeout?: number): Promise<string>;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
2024-03-20 15:03:14 +00:00
|
|
|
<table><thead><tr><th>
|
2023-04-06 12:50:22 +00:00
|
|
|
|
2024-03-20 15:03:14 +00:00
|
|
|
Parameter
|
|
|
|
|
|
|
|
</th><th>
|
|
|
|
|
|
|
|
Type
|
|
|
|
|
|
|
|
</th><th>
|
|
|
|
|
|
|
|
Description
|
|
|
|
|
|
|
|
</th></tr></thead>
|
|
|
|
<tbody><tr><td>
|
|
|
|
|
|
|
|
regex
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
RegExp
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
</td></tr>
|
|
|
|
<tr><td>
|
|
|
|
|
|
|
|
timeout
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
number
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
_(Optional)_
|
|
|
|
|
|
|
|
</td></tr>
|
|
|
|
</tbody></table>
|
2023-04-06 12:50:22 +00:00
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
Promise<string>
|