Current script:
set tdate [clock format [clock seconds] -format %Y%m%d]
set newName ofcvar_
append newName $tdate
append newName ".txt"
send "expect -f ofcvar.txt > $newName\r"
This gives me a new file like ofcvar_20080919.txt
When I type in the commands above at the expect prompt it works exactly like I wanted it but when I type the commands into a new tcl file and execute it it fails to send the last command successfully.
set tdate [clock format [clock seconds] -format %Y%m%d]
set newName ofcvar_
append newName $tdate
append newName ".txt"
send "expect -f ofcvar.txt > $newName\r"
I get this at the prompt:
xpect -f ofcvar.txt > ofcvar_20080819.txt
I am not getting the syntax right on the send command. I have tried several variations without luck.
Please help,
RF
set tdate [clock format [clock seconds] -format %Y%m%d]
set newName ofcvar_
append newName $tdate
append newName ".txt"
send "expect -f ofcvar.txt > $newName\r"
This gives me a new file like ofcvar_20080919.txt
When I type in the commands above at the expect prompt it works exactly like I wanted it but when I type the commands into a new tcl file and execute it it fails to send the last command successfully.
set tdate [clock format [clock seconds] -format %Y%m%d]
set newName ofcvar_
append newName $tdate
append newName ".txt"
send "expect -f ofcvar.txt > $newName\r"
I get this at the prompt:
xpect -f ofcvar.txt > ofcvar_20080819.txt
I am not getting the syntax right on the send command. I have tried several variations without luck.
Please help,
RF