The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 05:47 PM
Execute script on Unix/Linux from Windows brbillyh UNIX for Dummies Questions & Answers 4 07-10-2005 11:50 PM
Execute Shell Script sam71 UNIX for Dummies Questions & Answers 1 04-29-2005 01:43 PM
Is it possible to execute shell script with PHP? Micz Shell Programming and Scripting 1 05-27-2004 11:52 AM
How to execute shell Script? siva Shell Programming and Scripting 3 05-14-2002 11:07 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-17-2003
kyawlin kyawlin is offline
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
  #2 (permalink)  
Old 12-17-2003
Perderabo's Avatar
Perderabo Perderabo is online now Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,119
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 (permalink)  
Old 12-17-2003
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,926
> 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 (permalink)  
Old 12-19-2003
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,709
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 (permalink)  
Old 12-19-2003
kduffin's Avatar
kduffin kduffin is offline Forum Advisor  
UN1X
  
 

Join Date: Nov 2003
Location: Maryland
Posts: 449
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:18 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0