still problems with expect
i've got my script running simple stuff but it doesn't recognize any of my expect commands. right now i'm getting:
./test.sh: spawn: command not found
expect: invalid option -- r
usage: expect [-div] [-c cmds] [[-f] cmdfile] [args]
could someone tell me if i've forgotten to configure or update or place expect and tcl like i should.....or if there is any "tag" i've forogtten.
script
//***********************************
#!/bin/sh
#!/usr/bin/expect
HOSTNAME=******
BPATH=/home/****/test
DATE=`date +%m-%d-%y`
FULLDATE=`date`
spawn "scp $BPATH/test1 remotedrive1"
expect -re "remotedrive1 password:"
send "*********\r"
cd $BPATH/
#/usr/sbin/sendmail -t -i << EOF
#To: root
#Subject: test
#test
#EOF
echo "hello"
#exit 1
|