The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Windows services for unix - How do I run in batch rbdenham Windows & DOS: Issues & Discussions 3 06-05-2008 12:42 PM
backup through batch file in windows arulkumar UNIX for Dummies Questions & Answers 0 06-04-2008 02:10 AM
Executing application on Windows from Unix machine MobileUser UNIX for Dummies Questions & Answers 3 07-12-2007 01:47 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
executing *.bat file on windows from Unix box via ftp command alx Shell Programming and Scripting 9 01-29-2006 03:31 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 08-17-2006
Registered User
 

Join Date: Dec 2003
Location: Calif
Posts: 4
Executing Windows batch file from UNIX

Hi everyone, let me get straight to the points.

My manager wants to execute a remote batch file (on a Windows server) from a UNIX Machine, does anyone know if this is possible and what packages would be needed?

Thanks

p.s. Sorry i cant give OS specifics, we use most UNIX's; AIX, Solaris, RH, SuSE.
__________________
check me out www.geocities.com/flip387/main.html
Reply With Quote
Forum Sponsor
  #2  
Old 08-17-2006
muirhejs's Avatar
Registered User
 

Join Date: Aug 2006
Posts: 17
Flip387,

I am not aware of any way to run a windows batch file on a UNIX machine, and I fully expect there is not a way to do it on multiple OS's. I'm told that Sun makes a product called WABI (Windows Application Binary Interface) that might be worth looking at.

If it's just a batch file, I would re-code it in bash/ksh shell language...

- John
Reply With Quote
  #3  
Old 08-17-2006
Registered User
 

Join Date: Dec 2003
Location: Calif
Posts: 4
John,

I am sorry most not of explained the problem well enough.

I have a Windows Batch file on a windows2003 server, and lets say that batch file just creates a simple text file under the c: directory.
I need to execute that remote batch file on the Windows box, but i need to start it from a remote UNIX machine.

Basicly i need to telnet in to the Windows machine from UNIX and run the *.bat file, but we cant use telnet or ssh....

I hope that makes sense....
__________________
check me out www.geocities.com/flip387/main.html
Reply With Quote
  #4  
Old 08-18-2006
Registered User
 

Join Date: Dec 2003
Location: Calif
Posts: 4
/bump .....
__________________
check me out www.geocities.com/flip387/main.html
Reply With Quote
  #5  
Old 08-18-2006
Registered User
 

Join Date: Dec 2003
Location: Calif
Posts: 4
if anyone is stuck on this i found the following solution.

Install Win Remote Shell Services on the Windows 2003 server and then use
rsh to execute commands.

http://www.microsoft.com/technet/int.../sfu35rsh.mspx
__________________
check me out www.geocities.com/flip387/main.html
Reply With Quote
  #6  
Old 10-24-2008
otheus's Avatar
Moderator ala Mode
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 604
Follow this link to some additional useful tips and insights:

Standalone Sysadmin: Issue remote commands to Windows machines without installing ssh
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:22 AM.


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

Content Relevant URLs by vBSEO 3.2.0