Connecting to Windows Server


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Connecting to Windows Server
# 1  
Old 03-11-2011
Connecting to Windows Server

Hi,

One of the folders in UNIX is mapped with a drive on Windows.From this UNIX machine I want to connect to the Windows Server, perform some checks and view the results back on the UNIX machine.

For e.g. if I touch a file under the shared folder on UNIX, I should be able to telnet to Windows and check if this file has got created under the mapped folder.

Tried using expect but it didn't work. Any suggestions welcome
# 2  
Old 03-11-2011
install and enable ssh service on windows server
# 3  
Old 03-11-2011
I tried using the below piece of code but am not fully there yet:

Code:
SERVER=machine name
ID=xyz
PASSWORD=123
   (
       sleep 2
       echo "$ID";   sleep 2
       echo "$PASSWORD"; sleep 2
       echo cd /ABC
            sleep 1
   ) | telnet "$SERVER"

echo "Returning from Windows..."

It goes to the directory specified but within this is where I need to check for the presence of a file. How do I do this?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Connecting to Windows server from UNIX through script

I am trying to connect to a Windows server say 10.1.1.10. This servers has a folder named RAJ in which there are multiple .zip files. All these zip files contain a text file called XYZ.txt. Now i have to merge the content of these XYZ.txt files from each of the .zip file and create a new text... (1 Reply)
Discussion started by: swapniljadav
1 Replies

2. Virtualization and Cloud Computing

Connecting windows to Vmware

Hi , I have installed Centos 6.5 in my VMWare on windows 7 , My Internet is running fine on both VMWare OS and windows 7 . When I am trying to connect from putty on my window to Vimware Linux but it does not connect. Please help what should I do to connect the window system to Linux System (6 Replies)
Discussion started by: kaushik02018
6 Replies

3. Windows & DOS: Issues & Discussions

Connecting to UNIX from Windows without using putty

Hi Is there any command which we can try connecting unix from windows without using any third party tool. Thanks in advance KVB (9 Replies)
Discussion started by: bikky6
9 Replies

4. 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

5. UNIX for Dummies Questions & Answers

Help connecting to linux server from shh client in windows!

I just installed the latest version of unbuntu server and want to connect from windows using a ssh client. This is my first linux server, so bare with me =) For my server... cat /etc/hostsgives me 127.0.0.1 localhost 127.0.1.1 ubuntuHomeI tried using ssh secure shell and putty in vista.... (11 Replies)
Discussion started by: Bandit390
11 Replies

6. IP Networking

connecting to Unix from windows - help

Hello, I have a requirement like - I need to connect to specific Unix machine.That machine authenticates the user who is logging in. I am accessing from XP machine. Is possible to supply the Username & Password along with Host name and port, from Windows command prompt? If so how? (13 Replies)
Discussion started by: cassiel
13 Replies

7. Windows & DOS: Issues & Discussions

Connecting UNIX to Windows

Is there a way to connect to Windows from UNIX. From Windows to UNIX, there is a putty that can be used. Is putty also possible to use to connect? (2 Replies)
Discussion started by: punyenye
2 Replies

8. UNIX for Advanced & Expert Users

connecting to windows from unix

how to connect to windows from unix??? (7 Replies)
Discussion started by: hemant30
7 Replies

9. UNIX for Dummies Questions & Answers

connecting windows pc to sco openserver

I connected my windows 2k professional to sco openserver. i want to know how i should setup sco , so when i login from windows it will log me into my home dir on sco (1 Reply)
Discussion started by: scoman
1 Replies

10. IP Networking

Connecting SGI to Windows PC

I am trying to network an SGI running Irix 6.5 through an ethernet line to a PC running Windows 2000 (I have connected other PC's to this PC without any problems.) The PC has a DSL connection from Verizon that does not support Unix. I tried using DHCP on the SGI, but when I open a web browser on... (2 Replies)
Discussion started by: mdbanas
2 Replies
Login or Register to Ask a Question