delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/28/10:24:18

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: <macarthy AT iol DOT ie>
From: "Justin MacCarthy" <macarthy AT iol DOT ie>
To: <cygwin AT cygwin DOT com>
Subject: Running a bash script using "at" on an NT box
Date: Thu, 28 Mar 2002 15:23:03 -0000
Message-ID: <OFEGLPGPCHPACFLJPAILEENJCNAA.macarthy@iol.ie>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
In-Reply-To: <4.3.1.2.20020328095206.02492ef0@pop.ma.ultranet.com>
Importance: Normal

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:\

--
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