The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to execute script from my desktop windows xp to my HPUX server? kenshinhimura HP-UX 2 03-05-2008 02:47 PM
Execute script on Unix/Linux from Windows brbillyh UNIX for Dummies Questions & Answers 4 07-10-2005 08:50 PM
Execute Shell Script sam71 UNIX for Dummies Questions & Answers 1 04-29-2005 10:43 AM
Is it possible to execute shell script with PHP? Micz Shell Programming and Scripting 1 05-27-2004 08:52 AM
How to execute shell Script? siva Shell Programming and Scripting 3 05-14-2002 08:07 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 12-17-2003
Registered User
 

Join Date: Sep 2003
Posts: 1
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
Forum Sponsor
  #2  
Old 12-17-2003
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
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
Moderator
 

Join Date: Dec 2003
Location: /dev/fl
Posts: 1,061
> 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
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,493
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
kduffin's Avatar
UN1X
 

Join Date: Nov 2003
Location: Virginia
Posts: 441
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
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:52 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0