Date: Tue, 11 Apr 2000 15:53:21 -0500 From: beemern@telecom.ksu.edu To: questions@freebsd.org, keith@telestream.com Subject: scp/cron can't attach to terminal??? Message-ID: <38F390C1.6D14025D@telecom.ksu.edu>
next in thread | raw e-mail | index | archive | help
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: <SHELL=/bin/sh> X-Cron-Env: <HOME=/root> X-Cron-Env: <PATH=/usr/bin:/bin> X-Cron-Env: <LOGNAME=root> X-Cron-Env: <USER=root> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38F390C1.6D14025D>