The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 and shell scripting languages 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 03:42 PM
backup through batch file in windows arulkumar UNIX for Dummies Questions & Answers 0 06-04-2008 05:10 AM
Executing application on Windows from Unix machine MobileUser UNIX for Dummies Questions & Answers 3 07-12-2007 04: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 09:40 AM
executing *.bat file on windows from Unix box via ftp command alx Shell Programming and Scripting 9 01-29-2006 06:31 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-17-2006
flip387 flip387 is offline
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.
  #2 (permalink)  
Old 08-17-2006
muirhejs's Avatar
muirhejs muirhejs is offline
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
  #3 (permalink)  
Old 08-17-2006
flip387 flip387 is offline
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....
  #4 (permalink)  
Old 08-18-2006
flip387 flip387 is offline
Registered User
  
 

Join Date: Dec 2003
Location: Calif
Posts: 4
/bump .....
  #5 (permalink)  
Old 08-18-2006
flip387 flip387 is offline
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
  #6 (permalink)  
Old 10-24-2008
otheus's Avatar
otheus otheus is offline Forum Staff  
Moderator ala Mode
  
 

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

Standalone Sysadmin: Issue remote commands to Windows machines without installing ssh
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:49 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0