This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Running a bash script using "at" on an NT box


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]