in reply to Expect script to pull data from multiple servers...
Expect documentation says:
$object->log_file("filename" | $filehandle | \&coderef | undef) Log session to a file. All characters send to or received from the spa +wned process are written to the file. Normally appends to the logfile +, but you can pass an additional mode of "w" to truncate the file upo +n open():
You have
$exp->log_file ("output.log", "w");
If you remove the second argument ("w"), then it should append to the file. So you can try:
$exp->log_file ("output.log");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Expect script to pull data from multiple servers...
by Gradian (Initiate) on Nov 19, 2008 at 14:58 UTC |