execute .ksh from windows


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users execute .ksh from windows
# 1  
Old 08-02-2005
execute .ksh from windows

hi all...

this is my question: i have two servers (sun and windows). In the Sun server i have solaris 5.7. The Windows Server is Win 2000.

in the unix machine (sun) i have a program ksh, and i would like execute it from my windows server (run the ksh program what is in the unix machine from my windows machine). how can i do that? is that possible?

please, i'll thank any idea that you can give me
thanks

DebianJ
# 2  
Old 08-02-2005
cygwin comes with the public domain ksh (pdksh) that runs on windows. This should do the trick but you'll probably have to do a pile of cross platform standardization work. I have done some limited testing in this regard but have never had a requirement to go further. I would be surprised if someone doesn't run ksh scripts in both environments.
# 3  
Old 08-03-2005
Quote:
Originally Posted by DebianJ
hi all...

this is my question: i have two servers (sun and windows). In the Sun server i have solaris 5.7. The Windows Server is Win 2000.

in the unix machine (sun) i have a program ksh, and i would like execute it from my windows server (run the ksh program what is in the unix machine from my windows machine). how can i do that? is that possible?

please, i'll thank any idea that you can give me
thanks

DebianJ
I think the OP is saying he wants to initiate the ksh script on the Sun Server from the W2K box. You can use cygwin on windows. Just run the command (substitute for user,sunbox, and scriptname):

Code:
ssh user@sunbox "scriptname"

# 4  
Old 08-03-2005
question about code..

Dangral:

this code: ssh user@sunbox "scriptname"
can i put it in a program (a Windows's program)?

i want what a program in windows call to the ksh program what itīs in Unix and the ksh program can execute it.

am i dreaming? or that is possible?

thanks for your help...
DebianJ
# 5  
Old 08-03-2005
If you have SSH on the windows computer, then yes, you can do it. There are several ssh clients available and cygwin has one.
# 6  
Old 08-04-2005
TMARIKLE:

sorry the question, but i`m new in this....

you said i need SSH on my windows machine (the "SSH CLIENT", and in this case, it would be cygwin),

but do i need install something ("SSH SERVER" or something like that) in my unix machine? if i have to do, how can i know if i already have it?
i`m using solaris 5.7.
i write "ssh " in my unix machine and nothing happens (ksh: ssh: not found).

thanks for your help
# 7  
Old 08-04-2005
I'm afraid that I can't provide you with the answer on this one since I have not done any UNIX administration in 10 years. Old UNIX servers don't always have ssh installed and that's a matter of aquiring some kind of server-side product from some vendor.

However, in the absence of SSH, you have other utilities that should do the same thing. "rsh" should be installed on most systems. I believe the cygwin utilities also have rsh.

At this point, that is as far as I can help. Other folks on this forum are UNIX administrators and very familiar with rsh and others. Maybe one of them could chime in.

Last edited by tmarikle; 08-04-2005 at 07:01 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Execute a shell script in UNIX m/c from win 7 using ksh

I need to run a shell script on unix machine from windows 7. I used the "RSH" command in win XP successfully for this, But on win 7 it is not working. Can any body tell me how to run RSH on win 7 or any other command for similar use. I use the command as below rsh <unix m/c> -l <username>... (1 Reply)
Discussion started by: arup1980
1 Replies

2. Shell Programming and Scripting

ksh script to execute 2 variabless in universe enviroment

Hello, Im trying to write a ksh script that will enter the universe environment as user kourier (switching to this specific user automatically launches to the TCL prompt). At the TCL " > " prompt i want to execute two variables. However, it wont recognize the second variable (user input Answer) due... (6 Replies)
Discussion started by: seekryts15
6 Replies

3. Shell Programming and Scripting

How to execute .sh file on Windows?

How to execute .sh file on Windows? (2 Replies)
Discussion started by: arunaakella
2 Replies

4. Windows & DOS: Issues & Discussions

Windows remote to Solaris to execute ksh script

Hi all, I'm not sure if it is correct to post here. I am facing problem wanting to create a batch that run from my Windows XP pc to remote to multiple Solaris server to execute the server's ksh script. :wall: Can anyone give me a hints on how to do that? Thanks. (6 Replies)
Discussion started by: beginningDBA
6 Replies

5. Solaris

ksh scripts failing with cannot execute error

Hi, All the scripts placed in /home/bin had 755 permissions. Sometimes scripts are failing with cannot execute errors. Let me describe a simple scenario. MasterScript.sh had 755 permissions. It is success most of the times. But, sometimes failing with cannot execute error. Really... (1 Reply)
Discussion started by: sureng
1 Replies

6. Shell Programming and Scripting

How can I execute another shell from my ksh script?

I am newbie in UNIX, so please excuse me for the stupid question.:) Here is a problem: I created ksh script where the part of the functionality include an opening of a second session with another shell process "runrep"(runrep is a custom reporting shell designed by Advent Geneva). When I run my... (3 Replies)
Discussion started by: alexstar
3 Replies

7. Shell Programming and Scripting

Time taken to execute a ksh

Hi, I am executing a ksh. I want to note the time taken to execute each command that are executed in the ksh and write it in a log file. Also I want to note the total time taken to execute the ksh. How can I do that?What is the command to do that? (2 Replies)
Discussion started by: Kishore_1
2 Replies

8. Shell Programming and Scripting

ksh execute command containing double quotes

How do I execute a command containing a double quote ? I pass a variable to grep that contains spaces, so I need to quote it, but it does not work. #!/usr/bin/ksh set -x txt='"next to"' cmd="grep $txt ~dpearso5/file2" echo $cmd $cmd This is the error I get: + grep "next to"... (1 Reply)
Discussion started by: pearson05
1 Replies

9. Shell Programming and Scripting

How can I execute own ksh function in find -exec

Hi, I wrote a smiple ksh function send_notification() { ... } and want to execute it on each file, matched by the find command. I tried: find / -name "*.err" -mtime -8 -exec send_notification {} \; but it doesn't work. What should I do? I work in ksh on Hp-Ux. Regards, Pit (11 Replies)
Discussion started by: piooooter
11 Replies

10. UNIX for Dummies Questions & Answers

How to execute a shell script from Windows

I like to start a korn job remotely, from windows. I tried REXEC and that is not what I want. Need help !!!! thanks (4 Replies)
Discussion started by: kyawlin
4 Replies
Login or Register to Ask a Question