View Single Post

  #1 (permalink)  
Old 12-13-2006, 08:15 AM
Intelligen Intelligen is offline
Junior Member
User
 
Join Date: Dec 2006
Posts: 6
Rep Power: 0
Intelligen
Default Expect and tcl - manymaint.exp script

Hello everyone, i've been searching for close to a week now on this issue with so far no luck. I'm really at a dead end of where to go from here. This is my issue.

I have a fresh install of Fedora 6 with expect and tcl installed by doing the following:

yum install tcl
yum install expect

Code:
[root@intelligen Routerscript]# autoexpect manymaint.exp
autoexpect started, file is script.exp
couldn't execute "manymaint.exp": no such file or directory
    while executing
"spawn -noecho manymaint.exp"
    ("eval" body line 1)
    invoked from within
"eval spawn -noecho $argv"
    invoked from within
"if {[llength $argv]>0} {
        eval spawn -noecho $argv
        cmd "spawn $argv"
} else {
        spawn -noecho $env(SHELL)
        cmd "spawn \$env(SHELL)"
}"
    (file "/usr/bin/autoexpect" line 315)
So after a bit of reading it I thought maybe it needed to be ran with expect and this is what i get running with expect.

Code:
[root@intelligen Routerscript]# expect ./manymaint.exp
invalid .command .name "savescript="y""
    while execudting
"savescript="y""
    (file "./manymaint.exp" line 19)
I'm lost on what to do but i'm really thinking my tcl isn't correctly installed. Could anyone help me out? I'm in crunch time before end of year. Thank you!

(I would post the remaining question but the forum says I must have 5 posts before you can post URL's/Links but i'm not posting anything like that. Can a mod help me out?)
Reply With Quote