Hi first post here..... so dont execute me at once
I trying to find examples of the following
i making a small .c progg that i want to create a outputfile called
move-expect
wich would contain this
#!/usr/bin/expect -f
set username someting
set password something
spawn sftp $username@localhost
expect "assword:"
send "$password\r"
expect "ftp>"
send "put file\r"
expect "ftp>"
send "quit"
and then execute the file move-expect
i know how to do it in a .sh script but cat <<_EOF>> dont seem to work to good inside a.c proggie
hope someone knows how to do it
cheers!