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 Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Reply-To: From: "Ed Hoeffner" To: Subject: shell returns Date: Thu, 5 Jun 2003 15:35:43 -0500 Message-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 : \\server\share tcsh -c net use /delete : 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/