I have the following expect script that copies a nightly tar archive to another server using scp. Code: #!/usr/bin/expect -f set date [read -nonewline stdin] set file ...
Cron gets a restricted user environment. Paths are default, there aren't any user defined env values. So you can either make a file with env variables needed and have it sourced at the start of script ...