The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Windows & DOS: Issues & Discussions
Google UNIX.COM


Windows & DOS: Issues & Discussions Questions involving Unix to Windows (Desktop or Server) go here. Any Windows/DOS questions should go here as well.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
windows scripting for a batch job MizzGail Windows & DOS: Issues & Discussions 2 03-30-2007 03:42 PM
how to convert unix .ksh script to windows .batch script 2.5lt V8 Shell Programming and Scripting 1 11-28-2006 08:52 AM
Executing Windows batch file from UNIX flip387 Shell Programming and Scripting 4 08-18-2006 05:39 PM
How can I run scripts in my unix account from batch file in Windows? olgafb UNIX for Dummies Questions & Answers 7 05-27-2006 06:40 AM
Windows Services for UNIX eugrus Windows & DOS: Issues & Discussions 5 02-22-2005 03:52 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-05-2008
Registered User
 

Join Date: May 2008
Location: Houston, TX
Posts: 7
Windows services for unix - How do I run in batch

I just installed Windows Services for Unix. I want to create a ksh program and schedule it using the Windows scheduler. How would I go about doing it?

What would the command line look like?

Do I always have to be in a ksh shell to run the batch program even if it is not scheduled?

What if anything would I have to add the the Unix ksh script?

Do I have to setup anything special as far as the Windows Enviroment variables?

Thanks,
Rich
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-05-2008
Registered User
 

Join Date: Apr 2008
Location: European Union/Germany
Posts: 183
Windows does not actually execute 'the script'. Files ending on .ksh are only declared to be opened with ksh which has the same effect, but will hurt you in case you don't mind about that and try scheduled execution.

Add 'ksh c:\where\my\program\is.ksh' to scheduled execution instead of the script itsself (as its not executable by itsself).
Reply With Quote
  #3 (permalink)  
Old 06-05-2008
Registered User
 

Join Date: May 2008
Location: Houston, TX
Posts: 7
I will give that a try
Reply With Quote
  #4 (permalink)  
Old 06-05-2008
Registered User
 

Join Date: May 2008
Location: Houston, TX
Posts: 7
That worked!! Thank you!
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:33 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0