How to execute a shell script from Windows


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to execute a shell script from Windows
# 1  
Old 12-17-2003
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
# 2  
Old 12-17-2003
REXEC is probably the best choice despite its security issues. If it's not want you want, what do you want?

You might be able to script a telnet session, but it would be hard.
# 3  
Old 12-17-2003
> I tried REXEC and that is not what I want. Need help.

What was wrong with rexec? What exactly are you
trying to achieve?
# 4  
Old 12-19-2003
Re: How to execute a shell script from Windows

Quote:
Originally posted by kyawlin
I like to start a korn job remotely, from windows. I tried REXEC and that is not what I want. Need help !!!! thanks
You could try emailing a 'code word' to a .forward pipe that executes the script you want based on parsing a keyword (secret code word) from the email.

If you want to 'get fancy' you could use enhance the above with cryptographic techniques.

Neo
# 5  
Old 12-19-2003
Most things that I've coded in this fashion utilize socket communication and crypto calls in C. If you're looking for a quick script answer, you can use Expect on Windows (http://bmrc.berkeley.edu/people/chaffee/expectnt.html) coupled with ssh. Ssh can issue commands as part of the login such as:

ssh user@host <command>

You could utilize ssh keys to avoid having to use expect to feed passwords.

Cheers,

Keith
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Batch script to execute shell script in UNIX server

Hi team, My requirement is to transfer pdf files from windows machine to unix server and then from that unix server we should sftp to another server. I have completed the first part i.e From windows to using to unix server with the help of psftp.exe code: psftp user@host -pw password <... (1 Reply)
Discussion started by: bhupeshchavan
1 Replies

2. Solaris

how to execute shell script present in unix machine remotely from windows

how to execute shell script present in unix machine remotely from windows? I having a shell script in my unix machine, need to execute the script remotely from my windows machine using Visual Basic or VBA macros. Thanks In Advance. --Suresh (1 Reply)
Discussion started by: sureshmani
1 Replies

3. Shell Programming and Scripting

Dos batch script to execute unix shell script

Can anyone help me with a dos batch script to execute a shell script residing in an unix server. I am not able to use ssh. Thanks in advance (2 Replies)
Discussion started by: Shri123
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. Shell Programming and Scripting

MKS KORN SHELL WONT EXECUTE from windows command prompt

Can anybody help me with this small script , the script works fine and launches the IE from c:\documents and settings \test\my documents>ksh prompt $RunURL1.sh this scitpt works and launches the ie from ksh , but when i schedule it to run the script then i get the error box saying command:1... (2 Replies)
Discussion started by: venu
2 Replies

6. Shell Programming and Scripting

How to use ssh execute other shell script on other host (shell script include nohup)?

i want use ssh on the host01 to execute autoexec.sh on the host02 like following : host01> ssh host02 autoexec.sh autoexec.sh include nohup command like follwing : nohup /home/jack/deletedata.sh & after i execute ssh host02 autoexec.sh one the host01. i can't found deletedata.sh... (1 Reply)
Discussion started by: orablue
1 Replies

7. Shell Programming and Scripting

Execute unix shell script to text file using the script

Hi all, I am beginner in UNIX...I want to use unix shell script to create text.file...I know how to use using by command...can anybody tell me for the script? Thanks i changed the threads title from "tex file" to "text file", because "tex" would probably be misunderstood as reference to... (4 Replies)
Discussion started by: mastercar
4 Replies

8. HP-UX

how to execute script from my desktop windows xp to my HPUX server?

Good day, i would like to get some advice, how will i execute my script in hp ux servers, and how to configure rsh and rexec. thanks (2 Replies)
Discussion started by: kenshinhimura
2 Replies

9. UNIX for Dummies Questions & Answers

Execute script on Unix/Linux from Windows

Hello ALL, Does anyone know how I can execute a script on Unix or Linux? Details: This execution needs to start from Windows and I need to pass some parameters to the script. If anyone knows how to execute, please, let me know. Please, send me an example how it is possible. Thanks. (4 Replies)
Discussion started by: brbillyh
4 Replies

10. UNIX for Dummies Questions & Answers

Execute Shell Script

Hi all, I am begginer of UNIX . I dont know if i have a script written in korn shell with .ksh extention . If i want to execute that how can i do that? Can anybody suggest the best book to learn korn shell scripting. Thanks sam71 (1 Reply)
Discussion started by: sam71
1 Replies
Login or Register to Ask a Question