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 Message-Id: <4.3.1.2.20020328103544.0255ac88@pop.ma.ultranet.com> X-Sender: lhall AT pop DOT ma DOT ultranet DOT com Date: Thu, 28 Mar 2002 10:39:53 -0500 To: , From: "Larry Hall (RFK Partners, Inc)" Subject: Re: Running a bash script using "at" on an NT box In-Reply-To: References: <4 DOT 3 DOT 1 DOT 2 DOT 20020328095206 DOT 02492ef0 AT pop DOT ma DOT ultranet DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 10:23 AM 3/28/2002, Justin MacCarthy wrote: >Hi, > >I'm trying to schedule a bash script to run using "at" on a NT4 box >The script is located in /d/test.sh >test.sh is very simple just to test it > >If i type d:\Runscript /d/test.sh then it works fine. > >However I've tried > >at 16:00 /every:M,T,W,Th,F,S,Su "cmd /c d:\RunScript.bat /d/test.sh" > >It produces an error: >The At6.job command failed to start due to the following error: >The system cannot find the file specified. > >also tried : > >at 16:00 /every:M,T,W,Th,F,S,Su cmd /c "d:\RunScript /d/test.sh" > >produces nothing , no error , no d:\test.txt > >Below are the files I'm using... >Any ideas ??? > >Thanks >Justin > > > >test.sh >---------------------------------- >echo test >> /d/test.txt > >Runscript.bat >------------------------- >@echo off > >C: >chdir \cygwin\bin >bash --login -o vi %1 %2 %3 %4 %5 %6 %7 %8 %9 >chdir c:\ You'll want to review the email list archives and read up on some of the documentation on this one. These are issues which come up again and again and are always related to configuration and setup issues. The first most likely problem is that your mount table is not system-wide. Start there. But review the previous discussions on all this. Anything related to inetd, sshd, and login, in addition to things related to at and cron, is worthwhile reading. Larry Hall lhall AT rfk DOT com RFK Partners, Inc. http://www.rfk.com 838 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- 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/