From owner-freebsd-questions Wed Apr 12 7:27:55 2000 Delivered-To: freebsd-questions@freebsd.org Received: from gateway.telecom.ksu.edu (gateway-1.telecom.ksu.edu [129.130.63.239]) by hub.freebsd.org (Postfix) with ESMTP id 0F9B237B52B for ; Wed, 12 Apr 2000 07:27:48 -0700 (PDT) (envelope-from beemern@telecom.ksu.edu) Received: from sioux.telecom.ksu.edu(129.130.60.32) by pawnee.telecom.ksu.edu via smap (V1.3) id sma000297; Tue Apr 11 15:54:51 2000 Message-ID: <38F390C1.6D14025D@telecom.ksu.edu> Date: Tue, 11 Apr 2000 15:53:21 -0500 From: beemern@telecom.ksu.edu X-Mailer: Mozilla 4.6 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: questions@freebsd.org, keith@telestream.com Subject: scp/cron can't attach to terminal??? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG keith's DNS provider is having problems and any mail he sends is rejected becuz reverse lookups will fail. here is his question i'm submitting for him please reply to -questions and CC: keith@telestream.com TIA!! --snip-- I'm trying to have cron run a script that calls scp. The script just does a simple scp of a file from one machine to another. The script keeps dying while in cron but I can run it just fine at the command line. All paths are absolute and proper in the script and it's my assumption that it's more of an scp problem then a scripting problem. I'm wondering if it is because it's cron running it and there is no real terminal for scp to attach to or something. Here is the output mailed to root from cron. X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: Status: R spawn /usr/local/bin/scp -v /usr/local/apache/cgi-bin/admin/Add-User/LIST mail.t elestream.com:/bin/Add-User/LIST debug: Scp2/scp2.c:1357/scp_open_remote_connection: argv[0] = ssh2 debug: Scp2/scp2.c:1357/scp_open_remote_connection: argv[1] = -v debug: Scp2/scp2.c:1357/scp_open_remote_connection: argv[2] = -o debug: Scp2/scp2.c:1357/scp_open_remote_connection: argv[3] = passwordprompt %U@ %H's password: debug: Scp2/scp2.c:1357/scp_open_remote_connection: argv[4] = mail.telestream.com debug: Scp2/scp2.c:1357/scp_open_remote_connection: argv[5] = -s debug: Scp2/scp2.c:1357/scp_open_remote_connection: argv[6] = sftp debug: ssh_sigchld_real_callback debug: ssh_sigchld_process_pid: calling handler pid 87183 code 254 debug: ssh_pipe_sigchld_handler: pid 87183 status 254 debug: ssh_pipe_sigchld_do_callback Connection lost. Thanks for any pointers on this. Keith --snip-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message