So we have a mac that was stolen. We have Undercover installed and hope to see it pop up soon but I would like to be able to recover the /Users/username/Desktop/ and /Users/username/Pictures/ folders if I can. She is quite bother by her children's photos being out there.
I have the start of a script but I am having both an issue with expect and spawn at this point.
#!/usr/bin/expect
spawn scp -r /Users/username/Desktop/ root@remoteserver:/remote/path/to/upload
expect "(yes/no)?" {send "yes
”}
expect "Password:" {send "secretpassword
”}
spawn scp -r /Users/username/Pictures/ root@remoteserver:/remote/path/to/upload
interact
spawn throws an error about not being a command and my expect command does not seem to work.