Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
brewedDoritos
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
brewedDoritos
3y ago
Point taken about rsync, but you are assuming incorrectly that I haven't read it and that I haven't tried batch mode, but it still failed to run under cron inside an expect script. It's not my orgunit that manages the contrac
2.
▲
by
brewedDoritos
3y ago
> Avoid sftp and use rsync instead I should have explored rsync better. I asked chatgpt some use cases and it made seem to be a bad fit because I needed to also delete some files on the destination machine. My prompt fu was probably a bi
3.
▲
by
brewedDoritos
3y ago
> If you would run it in the background "./program &" and then exited ssh it would also exit. Just wondering... have you tried running it with nohup and in the background?
4.
▲
by
brewedDoritos
3y ago
I've actually tried script and expect, but they didn't work. I had enabled the debug option on expect and I couldn't see the password prompt when the program ran under cron (i was redirecting the script output to a log file).
5.
▲
by
brewedDoritos
3y ago
Recently I tried to use an sftp script created with expect that ran fine on the command line, but the same script failed to run under cron. I made sure that all environment variables were properly set, but sftp didn't ask me for a pass