delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/05/16:37:15

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
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Reply-To: <hoeff001 AT umn DOT edu>
From: "Ed Hoeffner" <hoeff001 AT umn DOT edu>
To: <cygwin AT cygwin DOT com>
Subject: shell returns
Date: Thu, 5 Jun 2003 15:35:43 -0500
Message-Id: <NFBBKEFDACPNLACFBFBDCEEGCKAA.hoeff001@umn.edu>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4920.2300

Hi

I've installed the latest cygwin incarnation and would like to be able to
execute windows commands after running a shell. Something along the line:

net use <disk letter>: \\server\share
tcsh -c <run backup shellscript here>
net use /delete <disk letter>:

I've tried both tcsh and bash, but the second net use command doesn't
execute. It does, however, if the tcsh line is commented out. bash -l -c
produces the same results. Figuring it was a return value problem, I tried
using the exit command in the shellscript that is called, but neither 0 or 1
had any effect.

Would someone please show me how to do this? It seems like it ought to work
straight away, but not in my hands. I've tried the mount command inside the
script, but couldn't get that to work either, so maybe it's something in the
way I have things installed.

All help greatly appreciated!

Thanks

Ed

Ed Hoeffner
1-271 BSBE
312 Church St SE
Mpls, MN 55455
hoeffner AT umn DOT edu
612-625-2115
612-625-2163 fax


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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