[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: which dput/method to chose for automatic uploads via cron?



On 1 Aug 2023 10:59 +0200, from harald.dunkel@aixigo.com (Harald Dunkel):
> - dput-ng/sftp	works fine on the command line, but dies with
> 		"Failed to auth" in cron scripts.

I can't help you choose a dput method, but different results between
running on an interactive command line and through cron almost always
comes down to some relevant environment variable having a different
value, or sometimes /bin/sh doing things differently from your default
shell. Since dput-ng/sftp seems to be closest to doing what you want,
have you ruled out such differences being the cause of your
difficulties when running it through cron?

More than once I've ended up putting something in a shell script only
to make it easier to run sometimes even just a single command with a
preferred shell through cron.

-- 
Michael Kjörling                     🔗 https://michael.kjorling.se
“Remember when, on the Internet, nobody cared that you were a dog?”


Reply to: