How to save a file directly into windows from UNIX?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to save a file directly into windows from UNIX?
# 1  
Old 08-02-2015
How to save a file directly into windows from UNIX?

Hi,

How can i save a file directly into my windows file system by running a shell script from my unix file system.

I need to fetch data from a database and save it in a file. Since the data downloaded from database is huge, if i save it in the unix file system, the space in my home directory gets filled up very soon. so, i used to download data on small chunks and transfer the file to my windows desktop using ftp.
FTP takes a lot of time to transfer the data file from unix to windows. SO my requirement is can i directly save the data fetched from DB in wondows filesystem so that i can avoid FTP. If so please explain me.

I don't know how to mount windows file system to unix.
# 2  
Old 08-02-2015
You don't state which Unix operating system or which Windows version it is. Please enlighten us.

I would say that you probably need to configure and/or install a NFS server (not just NFS client) on your Windows box. Microsoft sometimes provide this as an add-on or sometimes it's built-in depending on whether you are talking desktop or exact server version. You will need to research that on the basis of exactly what Windows OS you are running. Also make a note of which version of NFS (2,3,or 4) the Windows is supporting.

Then, after that you should be able to configure and publish a NFS handle on your network from the Window box which you can mount in the usual way on your Unix box (depending on which Unix O/S it is). This filesystem will then be still under the management of the Windows OS but directly accessible from Unix.

Please provide more information on your environment(s).

Last edited by hicksd8; 08-02-2015 at 01:14 PM..
# 3  
Old 08-02-2015
I don't think ftp adds that much overhead, so don't expect too much performance improvements using other methods/mechanisms.
I guess you can "share" your home directory, which is done by using the smb protocol (CIFS). Try using the samba client tools to copy data to your shared home dir.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Seen Windows pc, having all the features of Linux, could exe, read and edit save like windows

Hi, totally new to linux base using windows when started learning and using computers. but i remember that one pc was there , look alike windows desktop, but could not do the task as windows just click and open and view edit etc. But, you could do a little differently even saving in and opening... (8 Replies)
Discussion started by: jraju
8 Replies

2. Shell Programming and Scripting

Multiple input and save in windows format

The below code works great if the user inputs a single value. The sed command applies the NM_ with the user input it is saved to a file. However, if two values are entered the below does not work. Can both values be saved at the same time if they are entered in windows format? Thank you :). ... (6 Replies)
Discussion started by: cmccabe
6 Replies

3. Shell Programming and Scripting

Script to port a file from unix and save in windows

hi, when i finish running some scripts in unix...some csv file is getting generated...now im manually taking this csv file from this generated directory and using FTP, i'm importing to windows os and saving in a directory... please give me a script to automate this..so that i can add in my... (1 Reply)
Discussion started by: dll_fpga
1 Replies

4. UNIX Desktop Questions & Answers

Can Unix access Windows' File through Command Prompt in Unix

Hi all, I wish to know whether Unix can access window's file in Unix's terminal? Apart from that, how to copy files or share files between Window and Unix? I get to know of secure copy, however, my company's Unix does not support the feature of secure copy? Any other method for me to share/... (5 Replies)
Discussion started by: jessy83
5 Replies

5. Shell Programming and Scripting

UNIX script to FTP file from UNIX server to windows

Hi, I am new to this subject.....Can someone please help me out with the script... unix usernm "sdhftst" unix pwd "chsd13" windows usernm "dfghtst" windows pwd "chsd13" path..../xxx/xxxxx/xxxxxx/xxxxxxx please can u get me a script...its only one file to get ftp. Thanks... (2 Replies)
Discussion started by: himakiran9
2 Replies

6. Shell Programming and Scripting

Batch job in unix server to move the pdf file from unix to windows.

Hi Experts, I have a requirement where i need to setup a batch job which runs everymonth and move the pdf files from unix server to windows servers. Could some body provide the inputs for this. and also please provide the inputs on how to map the network dirve in the unix like that... (1 Reply)
Discussion started by: ger199901
1 Replies

7. Shell Programming and Scripting

[Bash]Attempting to Merge text from one file into another file at the line directly under a word

Hello, This is my first post on the forums. So I want to start by thanking anyone who is kind enough to read this post and offer advise. I hope to be an active contributor now that I've found these forums. I have an issue that I figure would be a good first post.. I have 2 text files... (5 Replies)
Discussion started by: efciem
5 Replies

8. Shell Programming and Scripting

Save cURL verbose output to file or do it like browser "save as.."

hi there ! i have exactly the same problem like this guy here https://www.unix.com/shell-programming-scripting/127668-getting-curl-output-verbose-file.html i am not able to save the curl verbose output.. the sollution in this thread (redirecting stderr to a file) does not work for me.... (0 Replies)
Discussion started by: crabmeat
0 Replies

9. UNIX for Dummies Questions & Answers

Save Excel file as .txt in UNIX format

I have some files created in Excel that have to be saved as .txt files in order to load them into our accounting system. I can save the files as .txt files through Excel, but I then have to open them in TextPad and do a save as to change the Format from PC to UNIX. Is there a way to skip this step... (2 Replies)
Discussion started by: jroyalty
2 Replies

10. UNIX for Dummies Questions & Answers

can unix printing directly to ip address

Thanks in advance. I am researching if it is possible for unix (solaris) to print directly printers with IP addresses. Without adding all the ip addresses to the hosts file? There are more than a hundred printers and managing them in a hosts file would be tedius, prone to error, and time... (4 Replies)
Discussion started by: maguired
4 Replies
Login or Register to Ask a Question