how to remotely administer/validate UNIX server via Windows machine?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting how to remotely administer/validate UNIX server via Windows machine?
# 1  
Old 06-09-2006
Question how to remotely administer/validate UNIX server via Windows machine?

Hi there--I think this is more of a Windows question, but I think many of you might be able to help me out:

I have a UNIX web server and a Windows machine. I'm trying to script the following tasks so that they can be run from the Windows machine (via a
batch file):

1. Shutdown web services on remote UNIX server.
2. FTP (ie, get) various files/folders from the UNIX server to Windows
client.
3. Startup web services on the UNIX server.

I can accomplish #1 using putty's "plink" command, but I need help
figuring out how to get my Windows script to validate that the "Web
Services shutdown"
completes successfully before it attempts to FTP (ie, get) the UNIX
files.

Also, I'd appreciate any ideas for getting my Windows script to
validate the "Web Services startup" completes successfully.

Please let me know your thoughts.

Thanks in advance!
# 2  
Old 06-10-2006
Install cygwin (http://www.cygwin.com/) on the Windows machine and pretend that it is a UNIX box. Assuming you do a fairly complete install once you are running in Cygwin's bash shell, you will feel (mostly) like you are on a Linux box.

If you will be doing a lot interactively, I would highly suggest using Cygwin's rxvt as your terminal rather than Cygwin's default of running bash in a cmd window. Contrary to somewhat popular belief, Cygwin's port of rxvt does not require an X server to be running.
# 3  
Old 06-11-2006
If you do this periodically, to me it looks like a simple cron job in the unix box.
Even If you want to do it on demand, still just make the script in the unix box and execute it from your putty xterm.
# 4  
Old 06-19-2006
i want to log in to unix from window machine (batch file) and run a script (ksh) on unix


how do i do from plink

plink username@password "server name" scriptname ??


does not work... any help appreciated

or still better i can run the whole script from batch file on windo

say
telnet severname
username
password

ksh
for i in $(cat vidpurge)
do
rm i
done
quit

any help appreciated...
# 5  
Old 06-19-2006
I think you have the wrong syntax for plink. Here's what I used to connect via ssh:

plink -ssh -pw [password] [username]@[host] [script]
# 6  
Old 06-20-2006
C:\>plink -ssh -pw [password] [username]@[sername]

give me an error

Unable to open connection:
Host does not exist


I usually do telnet/ftp to the server using sername no problem

do i have to do some setting in putty or i have spaces worng????


new to both putty & unix


thanks for your help Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. IP Networking

How to transfer files from UNIX server to windows machine or vice versa using ftp or sftp commands?

hi, i want to write a shell script code which transfers files from a directory in unix server to a directory in a windows machine.. can any1 give me a sample code which uses ftp or sftp command.. thanks very much, (3 Replies)
Discussion started by: Little
3 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

Unix shell script to Copy files from one Windows server to another Windows server.

Can anybody please help me on how to code for the below requirement: I need to write a shell script (on different unix server) to copy files from multiple folders (ex. BRN-000001) from one windows server (\\boldls-mwe-dev4)to a different windows server(\\rrwin-ewhd04.ecomad.int). This shell... (4 Replies)
Discussion started by: SravsJaya
4 Replies

4. Windows & DOS: Issues & Discussions

Controlling AIX processes remotely using a NET app on a Windows server?

I have a .NET application that remotely starts, stops, and gets status of Windows services and scheduled tasks. I would like to add the capability of starting, stopping, and getting status of remote AIX applications also. Based on some preliminary research, one option may be to use 3rd party .NET... (0 Replies)
Discussion started by: auser1
0 Replies

5. UNIX for Dummies Questions & Answers

How to connect remotely to a unix machine

Hello, I am connecting on a machine equiped with Unix, via SSH Secure Shell. On this machine I am running a script and I would like this script to be able to connect to another (Unix) machine to run a different process. In other words: when I am connected on a machine, how can I execute a... (1 Reply)
Discussion started by: jolecanard
1 Replies

6. Linux

down load file from unix server to Windows machine.

I need to download a script from Unix box to my PC. I don't have FTP installed on that machine and I am not able to connect to the server using ftp <Server Name>. I am not supposed to install any software on the server but still need to download the file. Heard that we have a secured ftp option... (3 Replies)
Discussion started by: chandu_kalari
3 Replies

7. UNIX for Advanced & Expert Users

connecting windows remotely from unix using SSH

Hi Can someone giv me some knowledge on accesing windows from unix and executing DOS scripts using SSH I would like to know how to go abt it...am new to it. Thanks in advance (1 Reply)
Discussion started by: lakshmis10
1 Replies

8. UNIX for Dummies Questions & Answers

Running UNIX commands remotely in Windows box from Unix box – avoid entering password

I am able to run the UNIX commands in a Windows box from a UNIX box through "SSH" functionality. But whenever the SSH connection is established between UNIX and Windows, password for windows box is being asked. Is there a way to avoid asking password whenever the SSH connection is made? Can I... (1 Reply)
Discussion started by: D.kalpana
1 Replies

9. IP Networking

Explor the Unix server on Windows Client machine

Hi, I am doin a project that'll work as a normal Explorer on Windows but the best thing is it'll be exploring the content of a UNIX server. The application would be runnin on the windows platform with probably a FTP server on UNIX server. How i should proceed? (2 Replies)
Discussion started by: ziaullahk
2 Replies
Login or Register to Ask a Question