Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running a unix script from windows

Status
Not open for further replies.

gfunk123

IS-IT--Management
May 22, 2001
143
GB
I have a script running on a unix box which is running under roots id (it has to use root to work) however, this script cannot be cronned, because it needs to be run on demand (immediatly). The people who benefit from running this script are the finance department in a windows NT environment. What i want is a way of getting them to run like a shortcut from their NT desktop which will log on to the unix box as root and run the script, kind of like a wrapper type thing. I presume their must be something that integrates the windows and *ix like this??

any help would be greatly appreciated
 
Maybe some sort of batch script that uses SSH or Telnet (not recommended) and executes the proper commands would do the trick. //Daniel
 
Go to Microsoft's web site and look for a product called Interix. It's a collection of unix tools and utilities that runs on Windows and provides a lot of interoperability between the two. It even comes with Korn shell for Windows (my fav). It has an rsh command that you could put into a Windows command file to have it kick off the Unix side script. You could use a .rhosts file on the unix side to control who can use it.
 
And perhaps sudo on the UNIX box so that it can be executed as a normal user and root access is kept to a minimum. Annihilannic.
 
Sudo would work but then you'd have to have the people learning to log onto your systems and executing commands.

Another option, a little more to setup but then wouldn't matter what kind of system they were on. Setting up a web server with a web page they could go to. The page could be tied to a cgi script that would execute what you want, how you want it, with security. So as long as they had a we browser they could get to it and execute it when they needed.

Michael
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top