Expect script - No output to file
I'm using a expect script to connect to a mp3 server (irmp3d) via telnet and output a playlist. When i run the script from a bash shell the script works as expected and gets the playlist. But when i run the script from within the server all i get out of the script is the commands passed to the spawned telnet client. Does anyone have any idea on how to pipe the output from the telnet client to a file?
This is my script: Quote:
Quote:
Quote:
Quote:
Thanks! /Peter |
Quote:
-twantrd |
Quote:
The script is meant to be run on the server to save the current playlist on the server when the mp3 daemon is shut down. So the localhost ip is correct. I have solved the problems by using the "script -c [script] /output/to/file.txt" command, for some reason that worked but not expect... /Peter |
Quote:
You must send those from the expect program. Since you did not, it just echos whatever you sent it. lexwoodrum |
Quote:
/Peter |
All times are GMT -5. The time now is 11:46 AM. |