Hi All, I am synchronizing a few hundred dovecot mailboxes with a perl script via a crontab. ? It works for a while (ie exit status=0)? but the rest then start failing with exit code 19200.?? I tried redirecting STDERR but showed nothing.? I suspect the cron job is hitting some sort of resource limit?? If I run the perl script from the command line it appears to dsync all the accounts OK.?? The relevant part of my Perl code is below.?? Any ideas? Thanks, Murray foreach (@userlist) { ??? my $email = $_; ??? chomp ($email); # get rid of CR ??? logit("Started sync of mailbox $email") if $debug; ??? my $dsync_command="dsync -v -D -u $email mirror ssh -C root@$mailstore dsync -u $email"; ??? logit("dsync_command=$dsync_command"); ??? # Run dsync of mailbox ??? logit("Started secondary sync of $mailbox to $mailstore") if $debug; ??? my $exit_status = system ( $dsync_command ); ??? logit("Dsync exit status: $exit_status") if $debug; ??? logit("Finished secondary sync of $mailbox to $mailstore") if $debug; }
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 18 Aug 2014, Murray Trainer wrote:> rest then start failing with exit code 19200. I tried redirectingSee perldoc -f system, 19200 is exit code 75. 75 most likly means Temporary failure.> STDERR but showed nothing. I suspect the cron job is hitting some > sort of resource limit? If I run the perl script from the commandCheck out the server logs, all Dovecot and SSH servers.> foreach (@userlist) { > my $email = $_; > chomp ($email); # get rid of CR > logit("Started sync of mailbox $email") if $debug; > my $dsync_command="dsync -v -D -u $email mirror ssh -C > root@$mailstore dsync -u $email"; > logit("dsync_command=$dsync_command"); > > # Run dsync of mailbox > logit("Started secondary sync of $mailbox to $mailstore") if > $debug; > my $exit_status = system ( $dsync_command ); > logit("Dsync exit status: $exit_status") if $debug; > logit("Finished secondary sync of $mailbox to $mailstore") if > $debug; > } > > > >- -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBU/Gh2nz1H7kL/d9rAQJ1Jgf/U88er2CMLqlxusDUyGkicOBBaOL5O/7u LmrLGgSA7nd3C+2kns0GFvKStGYroMvH0SfT2xFov6abU2imKbSKhrxMmltLT8vl 2/wHNjJt62nEpYfcNff8WohSDusOrn4YuKKCbXMdAAdZsHMJUaQXJ/f4TamKrSUr Hq75DabXtAMWC0i2kSHdlqrFguz2wImWRl0vE0Qgmjdye0qltTChgbsUW4de4yGe g6184IOdFrisZpCDYIA8gioCJunQYZlCR+BD8DsDd9Quldz5856p6e+nEDqbKTlo TNAALfe1g8SHsg5IWvV3tfSSrvkDpRuA1oHWCb49WLhBkL9j8pqKVA==xUj4 -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 18 Aug 2014, Murray Trainer wrote:> rest then start failing with exit code 19200.?? I tried redirectingSee perldoc -f system, 19200 is exit code 75. 75 most likly means Temporary failure.> STDERR but showed nothing.? I suspect the cron job is hitting some > sort of resource limit?? If I run the perl script from the commandCheck out the server logs, all Dovecot and SSH servers.> foreach (@userlist) { > ??? my $email = $_; > ??? chomp ($email); # get rid of CR > ??? logit("Started sync of mailbox $email") if $debug; > ??? my $dsync_command="dsync -v -D -u $email mirror ssh -C > root@$mailstore dsync -u $email"; > ??? logit("dsync_command=$dsync_command"); > > ??? # Run dsync of mailbox > ??? logit("Started secondary sync of $mailbox to $mailstore") if > $debug; > ??? my $exit_status = system ( $dsync_command ); > ??? logit("Dsync exit status: $exit_status") if $debug; > ??? logit("Finished secondary sync of $mailbox to $mailstore") if > $debug; > } > > > >- -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBU/Gh2nz1H7kL/d9rAQJ1Jgf/U88er2CMLqlxusDUyGkicOBBaOL5O/7u LmrLGgSA7nd3C+2kns0GFvKStGYroMvH0SfT2xFov6abU2imKbSKhrxMmltLT8vl 2/wHNjJt62nEpYfcNff8WohSDusOrn4YuKKCbXMdAAdZsHMJUaQXJ/f4TamKrSUr Hq75DabXtAMWC0i2kSHdlqrFguz2wImWRl0vE0Qgmjdye0qltTChgbsUW4de4yGe g6184IOdFrisZpCDYIA8gioCJunQYZlCR+BD8DsDd9Quldz5856p6e+nEDqbKTlo TNAALfe1g8SHsg5IWvV3tfSSrvkDpRuA1oHWCb49WLhBkL9j8pqKVA==xUj4 -----END PGP SIGNATURE-----