LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-02-2009, 01:32 PM   #1
bic
Member
 
Registered: Jan 2005
Distribution: MythDora 3.2, RHEL 6.3
Posts: 101

Rep: Reputation: 16
Need Linux to start a Windows batch job


I need a method (software?) in which I can tell a Windows box to start a batch job from a Linux box.

Sort of like doing ssh with a script but this is having the Linux box tell windows to start a batch job.

IOW, we have a Linux CVS box that builds java applications. Then the application gets deployed/installed on the box Windows box.
 
Old 09-02-2009, 01:34 PM   #2
bic
Member
 
Registered: Jan 2005
Distribution: MythDora 3.2, RHEL 6.3
Posts: 101

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by bic View Post
I need a method (software?) in which I can tell a Windows box to start a batch job from a Linux box.

Sort of like doing ssh with a script but this is having the Linux box tell windows to start a batch job.

IOW, we have a Linux CVS box that builds java applications. Then the application gets deployed/installed on the box Windows box.
I was thinking of having a Windows Task Schedule look for existence of a java on the Linux box, but how would I know Linux has finished modifying the file? I guess Linux could touch one last file and then we'd know to start the Windows job.
 
Old 09-02-2009, 07:34 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Quote:
I guess Linux could touch one last file and then we'd know to start the Windows job.
Yep, that's a classic soln to sync-ing 2 boxes when you can't do it from one program. I just use a signal/ctrl file eg ctrl.txt. That way it's generic, the target doesn't need to know what the last 'real' file is.
Just make sure the MS box deletes that that file.
 
Old 09-02-2009, 08:22 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Is telnet too basic?
 
Old 09-03-2009, 08:22 AM   #5
bic
Member
 
Registered: Jan 2005
Distribution: MythDora 3.2, RHEL 6.3
Posts: 101

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by jefro View Post
Is telnet too basic?
But isn't telnet a security hole?

On our Win2k3 box I notice it's disabled.
 
Old 09-03-2009, 11:36 AM   #6
nuwen52
Member
 
Registered: Feb 2009
Distribution: Debian, CentOS 5, Gentoo, FreeBSD, Fedora, Mint, Slackware64
Posts: 208

Rep: Reputation: 46
Telnet is generally considered insecure because it transfers all data "in the clear", including passwords. On a completely local network, it might not be that bad.

One possible answer is to have samba on linux share out a drive (which the windows machines have mounted, or mount when they want to check), and it puts the files into there. Then you can have the windows machines look there and see if files exist. For one or two machines, this is probably not practical. But, if you have a number of windows machines, this might be easier than having the linux machine send to each one.

Last edited by nuwen52; 09-03-2009 at 11:37 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Submitting batch job from apache vidhuc Linux - General 6 03-20-2008 02:05 PM
Can you start a job without getting the job number spit back out? BrianK Linux - General 5 12-13-2007 08:09 PM
batch job finished notification nkelle Linux - General 2 03-08-2007 10:45 AM
tricky batch file job. needs vi/cc guru otchie1 Linux - Software 11 05-05-2006 10:27 AM
Trigger linux command by windows batch file? mariusak Linux - Networking 6 06-03-2005 05:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration