Interact to windows server from unix box


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Interact to windows server from unix box
# 1  
Old 02-20-2009
Interact to windows server from unix box

Hello - My requirement is like this...

I have flat file which is sitting in windows server... My shell script is running in unix box. Shell script loads the flat file into oracle through sqlloader. So script needs to pickup the flat file from windows box.

I need to refer windows location in shell script... How can i do this. Any help is highly appreciated....
# 2  
Old 02-20-2009
Will have to either:

Have the flat file in a FTP directory on the windows server

Or

Configure samba to connect to a shared directory on the windows server and mount it on the linux/unix box to read the flat file.
# 3  
Old 02-22-2009
Thank you Ikon.

I believe, samba needs to be installed in unix box and configure the windows directory..

After installing samba, i have another requests. Basically two things i need to do.

1. This question is already asked in this thread.. Login to unix and ftping files from windows to unix.

2. Login to unix, Can i also move the files from unix box to windows directory?

Please let me know.

Also it would be helpful if you could provide any link to configure smaba...

Thanks and highly appreciated your answers and responds.
# 4  
Old 02-22-2009
From windows, you can run ftp. I do this all the time. I open a cmd window, type ftp, and then I have an ftp client very much like the unix ftp client. There are dozen of other ftp clients for windows. The windows server has IIS (I think its called) that includes an FTP server. I have heard that a limited version of IIS comes with XP Professional and you can install it and then run FTP, but only for a very few connections at a time. But both Windows and Unix must be configured to run FTP. Lots of people do not run FTP anymore. If it's not running and you can't change that, this won't work. I don't think you can run the IIS FTP server on XP Home. But in general, either system can FTP the other.
# 5  
Old 02-22-2009
Perderabo, I think, you misunderstood my question. I need to login in unix and ftp files from windows to unix folder and ftp files from unix to windows folder. So i can login only in unix. I do not have permission to login in windows server. My shell scripts sits in unix server and interact with windows... Hope you understand now...

As Ikon suggested, i can go for samba tool.. Please let me know your thoughts...
# 6  
Old 02-22-2009
You can't use ftp if you have no account. Depending on the way that the windows system is set up, you may have trouble with samba as well. It is rare that an unauthenticated user can read and write files to any system.
# 7  
Old 02-22-2009
Take a look at facetwin. I think this might help.

Alternatively, you could approach this another way. What if you "export" a directory on the UNIX server to make it visible to Windows?

Then you can mount the UNIX directory as a Networked drive on the Windows Server.

Then write the flat file (a report or export file from excel or database?) or have the System Administrator write the flat file to this mounted directory.

On the UNIX side, this folder is now available to your database!


Steve
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

UNIX command to copy files from Windows to UNIX box

Hi Folks, I have a file name abc.xml in my windows machine at the location c:\ytr\abc.xml which I want to place at the unix box machine inside cde directory.. at the following location that is /opt/app/cde/ now the credentials of unix box are abc345 -->(dummyid) ftyiu88--->(dummy passwd) ... (4 Replies)
Discussion started by: punpun66
4 Replies

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

3. UNIX for Dummies Questions & Answers

Get files from Windows to Unix Box

Hi All, I am a new to unix scripting ...looking for directions from the Gurus. I want to create a FTP script to get Files from windows box to unix box. Thank you for your replies. (1 Reply)
Discussion started by: pbhk
1 Replies

4. Shell Programming and Scripting

ftp file starting with particular name on Windows box to Unix box using shell script

Hello all ! I'm trying to write a shell script (bash) to ftp a file starting with particular name like "Latest_" that is present on a Windows box to UNIX server. Basically I want to set this script in the cron so that daily the new build that is posted on the Windows box can be downloaded to the... (2 Replies)
Discussion started by: vijayb4u83
2 Replies

5. UNIX for Dummies Questions & Answers

I need an scp command from a unix box to a windows box.

scp file="myfile.txt" todir="user@somehost:(M:drive:/somepath/)"/ Not sure I need it to go to a specific drive on the windows box (1 Reply)
Discussion started by: xgringo
1 Replies

6. Shell Programming and Scripting

Moving files from Unix box to a windows box

Hi All, I need a little help .I want to transfer a file from unix box to a windows box,but the problem i'm facing is that in windows box FTP is not enabled and currently it is nearly impssible to change setting on windows box,i can not use the ftp method ,in my shell script to transfer the file.... (2 Replies)
Discussion started by: Preet
2 Replies

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

8. Shell Programming and Scripting

FTPing from unix box to windows box.

Hi All, I need to know if it is possible ftping files from unix box to windows box . if yes , how ?. Is there any pre-requisits. Please tell me the steps, this is very urgent. Thnx Aru (8 Replies)
Discussion started by: aarora_98
8 Replies

9. UNIX for Advanced & Expert Users

VPN client (windows Box),and Server (Unix Box)

If I want to access unix box via VPN tunnel,from windows box. What sould I configure on the windows client PC, and what should I enable on the Unix Server box ? I am using Solaris V10 intel platform, and I am using windows XP, and 2003 for client (0 Replies)
Discussion started by: zillah
0 Replies

10. IP Networking

Can see my linux box from unix but from windows based

I have a company lan, we have workstations and we have servers. I have 3 unix servers, and 2 linux servers. I can ping one of the linux servers from windows, but the other one gets no reply, However, from my unix boxes i can telnet AND ping both linux boxes. The 2 linux boxes are on different... (4 Replies)
Discussion started by: kymberm
4 Replies
Login or Register to Ask a Question