Dick Middleton wrote: > Michal Ludvig wrote: >> Dick Middleton wrote: >> >>> S3cmd: 0.9.8.3 >>> [...] >>> File "/usr/bin/s3cmd", line 657, in gpg_encrypt >>> code = gpg_command(command, cfg.gpg_passphrase) >>> File "/usr/bin/s3cmd", line 644, in gpg_command >>> p_pid, p_exitcode = os.wait() >>> OSError: [Errno 10] No child processes >>> >>> [...] >>> >>> Obviously something wrong with gpg setup. Works OK from command line but >>> not >>> from shell script. >> Interesting. Do you run the shell script from command line or as a cron job? > > This is running a script from 'motion' end_of_movie event. I'm guessing > it's an environment thing because if I echo the s3cmd to 'at now' it > works fine.
Try to add --no-tty to gpg_encrypt and gpg_decrypt settings in your ~/.s3cfg. Perhaps GPG doesn't get a TTY device and fails... Michal ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ S3tools-general mailing list S3tools-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/s3tools-general