Other Programming Languages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreOther Programming Languages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old June 27th, 2007, 01:56 AM
edfollett's Avatar
edfollett edfollett is offline
Mystical Monkey with Wings
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: SW1A London UK
Posts: 500 edfollett User rank is Corporal (100 - 500 Reputation Level)edfollett User rank is Corporal (100 - 500 Reputation Level)edfollett User rank is Corporal (100 - 500 Reputation Level)edfollett User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 12 h 59 m 21 sec
Reputation Power: 9
Shell / command line - trigger bat file on other server

Hey all,

ive got a bat file that sits on 4 of my servers and one central script which requires each bat file to be run on each server. The bat files themselves simply gets a list of the services running on that specific server so it needs to be run on that server.

if i run the script remotely at the moment it simply returns a list of the services where ther central script is based. any ideas how i can trigger this remotely!

Ta,

Ed
__________________
To fly a Kite high you have to fly against the wind!

think about it..... deep man deep!!

Current Project
Contact me

Reply With Quote
  #2  
Old June 28th, 2007, 07:09 AM
jamieB jamieB is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2002
Posts: 592 jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 1 h 56 m 16 sec
Reputation Power: 17
There are probably simpler windows RPC ways of doing this but you could do it with java rmi or, simpler, a little socket server, or a webserver with cgi.

Reply With Quote
  #3  
Old June 28th, 2007, 08:05 AM
LinuxPenguin's Avatar
LinuxPenguin LinuxPenguin is offline
fork while true;
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: May 2005
Location: England, UK
Posts: 5,535 LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)  Folding Points: 11590 Folding Title: Novice Folder
Time spent in forums: 1 Month 3 Weeks 1 Day 19 h 23 m 58 sec
Reputation Power: 1008
Or even telnet...

There are some very nasty security hole ridden rpc systems in windows, there is the unsecured telnet, or you can install openssh for windows on those servers and do it the easy way.
Comments on this post
jamieB agrees: ssh is a much better suggestion

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreOther Programming Languages > Shell / command line - trigger bat file on other server


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway