Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Dec 2002 14:12:51 -0600
From:      Eric Six <erics@sirsi.com>
To:        "'Norbert Koch'" <viteno@t-online.de>
Cc:        "'freebsd-questions@FreeBSD.ORG'" <freebsd-questions@FreeBSD.ORG>
Subject:   RE: Cron script problem....
Message-ID:  <DC32C8CEB3F8D311B6B5009027DE5AD505E33F6E@stlmail.dra.com>

next in thread | raw e-mail | index | archive | help

I've added the verbose flag to ssh. Here is snipet from the log.. The
connection is built, directory made, and connection torn down. It seems as
if ssh is sending a kill or exit after it runs??

debug1: Reading configuration data /etc/ssh/ssh_config^M
debug1: Applying options for *^M
debug1: Rhosts Authentication disabled, originating port will not be
trusted.^M
debug1: restore_uid^M
....
debug1: ssh-userauth2 successful: method publickey^M
....
debug1: Entering interactive session.^M
debug1: client_init id 0 arg 0^M
debug1: Sending command: mkdir /bind_backups/ns3/Dec-11-2002^M
....
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0^M
debug1: channel 0: rcvd close^M
debug1: channel 0: is dead^M
debug1: channel_free: channel 0: status: The following connections are
open:^M
  #0 client-session (t4 r0 i8/0 o128/0 fd -1/-1)^M
^M
debug1: channel_free: channel 0: dettaching channel user^M

That's the last line of the log.. nothing else is run. SCP should be invoked
from there...


Eric
-----Original Message-----
From: Eric Six [mailto:erics@sirsi.com]
Sent: Wednesday, December 11, 2002 1:53 PM
To: 'Norbert Koch'
Cc: 'freebsd-questions@FreeBSD.ORG'
Subject: RE: Cron script problem....


Interactively, I am running the script as the backup account that cron uses
to run the copy script. And it runs correctly interactively. I try the ssh
-v and see if that says anything.. Is there a timeout issue that cron might
be seeing? Anyone know? hmm.. I am stumped.

Eric

-----Original Message-----
From: Norbert Koch [mailto:viteno@t-online.de]
Sent: Wednesday, December 11, 2002 1:50 PM
To: Jack L. Stone
Cc: Eric Six; 'freebsd-questions@FreeBSD.ORG'
Subject: Re: Cron script problem....


"Jack L. Stone" <jackstone@sage-one.net> writes:

Hi!

> Eric: I'm no script expert, but perhaps if you added the full path to perl
> in the cron line. That's usually a problem....

Shouldn't be the case here, because then, the script wouldn't start at
all, but as Eric has pointed out it runs up to the first SSH call.

Eric, 

it might be a good idea to call ssh with the -v switch and capture the
output of the command.  Maybe it sheds some light into your problem.

Do you use the same user for interactive and cronjob operation?

norbert.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DC32C8CEB3F8D311B6B5009027DE5AD505E33F6E>