delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/14/11:02:30

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Thu, 14 Feb 2002 09:59:34 -0600
From: "Jonathan C. Detert" <detertj AT msoe DOT edu>
To: cygwin AT cygwin DOT com
Subject: trouble running commands non-interactively (e.g. via ssh, cron, at)
Message-ID: <20020214155934.GR12743@carlisle.msoe.edu>
Mime-Version: 1.0
User-Agent: Mutt/1.3.25i

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019