1834828 Members
1829 Online
110070 Solutions
New Discussion

command

 
SOLVED
Go to solution
Mark Mitchell
Trusted Contributor

command

Is there a way on a windows PC to log on and fire off a job on a Unix server. I want to automate the process, but getting the commands to execute on the Unix server seems to be difficult.
6 REPLIES 6
Chris Calabrese
Valued Contributor
Solution

Re: command

Not easily using the software that comes bundled with Win* (well, you could have a script that calls telnet and supplies the pssword, but this is a pain).

The easiest thing is probably to get a copy of an 'rsh' or 'rcmd' client for Win*. There are many of these floating around and they work pretty much like rsh/remsh for Unix.

If you're a bit more paranoid, you might check SSH or OpenSSH, which uses cryptographic authentication and data encryption.
Brainbench MVP for Unix Administration and Internet Security, SANS Review Editor, and Center for Internet Security HP-UX Benchmark project leader
boley janowski
Trusted Contributor

Re: command

you could also use wintegrate this will allow you to open a session to a server and run what ever you want to. while you are doing this you can have wintegrate record each one of the prompts that you get and each one of your key stroke while you are running it. once your done you can save that as an exicutable. you can then launch that exicuatable from your pc, it will then do everything automatically for you.

you can get this at:

http://www.informix.com/informix/products/tools/wintegrate/

Good Luck
A. Clay Stephenson
Acclaimed Contributor

Re: command

Hi Mark,

If I am doing this sort of thing and need to connect just a few PC's (so that cost is not really an issue), I always use the MKS Toolkit because you also get a real shell on the Windows side as well as all the unix tools you are familiar with.

Check out: http://www.mkssoftware.com/

If needed on many PC's, I have done this by setting up a listener in perl on the UNIX
end and a client written in perl on the PC side.

Food for thought, Clay
If it ain't broke, I can fix that.
boley janowski
Trusted Contributor

Re: command

i thought i would tell you how we implament it for our operators.

we write scripts with menu options at the unix level. then each script can be run manually should any problems arise. once the scripts are setup correctly we will run wintegrate as i just discribed to record everything and generate a wintegrate script. I hope this helps you out some.
Kofi ARTHIABAH
Honored Contributor

Re: command

With respect to having a unix-like environment on an Wintel box, there is a toolkit that you can download from http://www.cygwin.com which includes facilities for rsh/remsh openssh etc... best of all its free.

good luck.
nothing wrong with me that a few lines of code cannot fix!
Mark Mitchell
Trusted Contributor

Re: command

Thanks everyone, I will have to spend some time on all of your suggestions to find the best one for the project. So I want to treat all of them as a correct answer.