LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-09-2004, 03:49 PM   #1
ann124
LQ Newbie
 
Registered: Nov 2004
Posts: 9

Rep: Reputation: 0
Question unix korn shell script that interact with windows java program


Hi,

I would like to know whether I'll be able to create a program using KOrn shell scripting that can ftp a file from one Unix machine to an NT machine and then it has to run a Java Program in the Windows Environment and in the end,it needs to be ftp -ed back to the Unix machine.

Is this possible?

What would be the exact commands to ftp a file from a unix server to a directory on a Windows NT server?
Also to run the JAVA program in Windows ?

Are there any tools to make it easier in the market?


Any idea or solutions are welcome.
 
Old 11-09-2004, 04:31 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Is it an option to control the process from the NT box?
 
Old 11-09-2004, 04:42 PM   #3
ann124
LQ Newbie
 
Registered: Nov 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Smile Detailed question

Hi,
Thanks for the prompt response. If there is an option in NT m/c ,is it possible to have this porgram using Shell scripting?

After the end of the first command in the shell program ,the result which is stored in a file has to be ftp -ed to NT from UNIX and then it has to execute a JAVA porgram which works only in Windows and then when its done and also has to succeed .Now the result needs to be send back to the UNIX m/c with another ftp command.

What would be the exact commands to ftp a file from a unix server to a directory on a Windows NT server?
Also to run the JAVA program in Windows using shell program?

Are there any tools to make it easier in the market?


Any idea or solutions are welcome.
 
Old 11-09-2004, 05:11 PM   #4
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Quote:
it has to execute a JAVA porgram which works only in Windows
What type of java program only works in Windows?

Quote:
What would be the exact commands to ftp a file from a unix server to a directory on a Windows NT server?
I'd use the ncftpget and ncftpput programs. Only way to go when scripting ftp. You will need an ftp server on the NT side. IIS comes with one.

Quote:
Also to run the JAVA program in Windows using shell program?
You would have to enable telnet into the machine and run it that way.

Quote:
Are there any tools to make it easier in the market?
Probably, but why, if you can do it for free.
 
Old 11-09-2004, 05:25 PM   #5
ann124
LQ Newbie
 
Registered: Nov 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Cool

Hi,
Thanks.

The Java program has got some objects that can only work in Windows.So I need to run that porgram from Unix Shell program and it has to work in windows env. If its a success ,only then I need to ftp that back again.

So sounds like a posssible mission to be accomplished.

Thanks.
 
Old 11-09-2004, 09:14 PM   #6
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
You can apparently get an SSH server for windows that supports SCP etc http://sshwindows.sourceforge.net/. With that you should be able to automate the whole operation from a single script (and not have to rely on telnet+FTP, blech).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
telnet windows m/c from unix shell script ann124 Programming 1 11-10-2004 01:26 PM
Unix scripts to interact with Windows NT ann124 Solaris / OpenSolaris 1 11-09-2004 04:55 PM
Korn shell script Muzica Solaris / OpenSolaris 4 09-06-2004 12:47 PM
Is it possible to interact with java program on web by using PHP? antony_csf Programming 8 06-25-2004 09:28 AM
what is unix emulator to interact with windows client machine? u4u Programming 8 08-14-2003 07:16 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:35 PM.

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