Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: RE: trouble running commands non-interactively (e.g. via ssh, cron, at) Date: Thu, 14 Feb 2002 11:59:00 -0500 Message-ID: <88D2015B3AF7BF4B91272EC25A9FE09701296B92@XCHANGESERVER.storigen.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: trouble running commands non-interactively (e.g. via ssh, cron, at) Thread-Index: AcG1cQ2MkAs0PsYqSHmbUEWfsnc3+AABcD4Q From: "Scott Prive" To: "Jonathan C. Detert" , Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g1EGxNK26622 No idea since I don't administer NT users, but I assume you've tried to isolate this by scripting "other" executables. So is this a 1) system-wide NT / ssh issue, 2) a possible bug in your script, or 3) is something special about these particular .exe files on your server? If those NT exe's have proper $? return values on success/fail, I don't see how this could be any different than a cygwin .exe. -Scott -----Original Message----- From: Jonathan C. Detert [mailto:detertj AT msoe DOT edu] Sent: Thursday, February 14, 2002 11:00 AM To: cygwin AT cygwin DOT com Subject: trouble running commands non-interactively (e.g. via ssh, cron, at) Hello, I've got DLL version 1.3.6 installed on NT 4.0 SP6. I'm trying to create/delete user accounts in the domain that the cygwin box is in. If I (interactively) login into the cygwin box via ssh, I can successfully run the "NT Resource Kit" addusers command and the Ms. Exchange "admin.exe" command to create/delete accounts. However, If I try to run either of those commands non-interactively via ssh, they don't work. The commands return with no effect. At first, I thought the problem was something peculiar about the addusers and admin commands. So, I wrote perl programs to manage the accounts. However, the same problem applies to the perl programs - they work fine when run from an interactive login-shell, but not when run non-interactively from ssh. The same problem occurrs when I try to schedule programs via cron or at - the scheduled programs fail (i don't even know if they run - there's no log anywhere that I can find; I just know they don't do what they were intended to do). Any ideas? AtDhVaAnNkCsE -- Happy Landings, Jon Detert Unix System Administrator, Milwaukee School of Engineering 1025 N. Broadway, Milwaukee, Wisconsin 53202 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/