Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Script for copying files from windows to UNIX Post 302911428 by saleheen on Thursday 31st of July 2014 02:26:49 PM
Old 07-31-2014
Script for copying files from windows to UNIX

Hi guys

Let me start by saying that I'm a newbie, so feel free to point me to any good reading material. What I wanted to do is copy some specific files from windows to unix. Let me elaborate my view.

Let's say I have some directory tree in unix, CHO-species/C2H1O1/ VAS-S005-001-Ru444/OPT-0/, VAS-S005-002-Ru444/OPT-0/,
In my windows under Documents/Material Studio Projects/Pro-005/Documents/CHO-species/C2H1O1/ VAS-S005-001-Ru444 CASTEP Energy/, VAS-S005-002-Ru444 CASTEP Energy/ I have the same named .cell files, names are VAS-S005-001-Ru444.cell & VAS-S005-002-Ru444.cell. I wanted know if it's possible to write a script that'll match the directory between unix and windows and copy the .cell files into the respective unix directory? Normally what I do is open a file transfer window and transfer the .cell files manually in each directory. Is it possible for a loop to go through a unix directory upto child directory (here it's OPT-0) then copy the .cell file in there, come back all the way, then go through the directory again and copy .cell file again and thus goes on. Sorry if I made it complex but I hope I could make myself clearer :/ And I know it's not right just to state the problem but I searched and tried, you know I'm newbie :/ If anyone can shed some light on how to do this or point me to some link that'd be of great help.

Thanks a lot to all of you who're helping us in this forum to start learning about unix and solve our problems. Smilie Smilie

Saleheen
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Copying file from Unix workspace to Windows Network

Hi All, I am new for Unix, and facing one problem I wanted to copy some of files from my Unix workarea to Window network drive. I am not able to use copy or move command for this, as this only works within workarea. Please let me know, how it can be done. (2 Replies)
Discussion started by: ashwanis
2 Replies

2. Shell Programming and Scripting

copying from unix to windows

Hi, I am new to shell scripting, I want to copy some imp files from solaris server to windows server in a particular directory,username and password should be inside script and i want to it should copy output of some commands to windows server.first it will copy output of command to file then... (1 Reply)
Discussion started by: manoj.solaris
1 Replies

3. Shell Programming and Scripting

writing script in UNIX for copying files in two server

can anyone help me in writing script in UNIX for copying files in two server from the third server after checking the files in the third server and if there is anything new in the third server automatically it should be added to the rest of the two servers and if same file is existing in the two... (4 Replies)
Discussion started by: REKHA09
4 Replies

4. Shell Programming and Scripting

copying files from UNIX to windows using FTP

Hi, I want to transfer the approx 10k files available on UNIX Server to Windows Server using FTP Command. is it possible? how ? Thanks in advance. Sachin. (1 Reply)
Discussion started by: ssachins
1 Replies

5. UNIX for Dummies Questions & Answers

copying files from Windows!!

All, I have a requirement where Iwill be getting the CSV files on windows Shared Drive, and I need to copy those to my unix directory... Is there anyway we can do this?? Thanks, freakabhi (4 Replies)
Discussion started by: freakabhi
4 Replies

6. Shell Programming and Scripting

Error copying files from Unix (Solaris10) to Windows Server 2003 using scp/sftp

Hi, I have generated a Public/Private Key Pair in Solaris Unix (source) server and deployed the Public key in Windows 2003(target) server .ssh directory of user profile. When i try to connect(ssh, scp, sftp) from Unix, i'm getting below error message. Sun_SSH_1.1, SSH protocols 1.5/2.0,... (0 Replies)
Discussion started by: ajaykumarb
0 Replies

7. Shell Programming and Scripting

RCP for copying the files from one drive to other on Windows

Hi, I have a requirement to move the files between two drives in windows machine from Korn sheel. I came to know that It can be done through RCP. Can any one help me with syntax for connecting to Windows machine and moving the files with RCP in KSH? Thanks in advance. Double post.... (0 Replies)
Discussion started by: Raamc
0 Replies

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

9. Shell Programming and Scripting

Problem copying files from windows to unix

Hello, I want some directions for a command inside a shell script which would copy files from some path on my windows os (say my documents) to the path where my shell script is saved and I want it to exit the sftp session and continue executing the remaining lines in my shell script after... (2 Replies)
Discussion started by: Vishwa308
2 Replies

10. Shell Programming and Scripting

Copying the files to Windows server from UNIX server

Hi Team, I had a requirement to write a shell script which automatically transfer the files from unix server to windows server. I can able to unix to unix using Scp command. I am not sure how to do unix to windows. I am very new on this concept. Could you please help me or guide in... (4 Replies)
Discussion started by: gvkumar25
4 Replies
CATAL(5)						       ALLIANCE FILE FORMATS							  CATAL(5)

NAME
catal - catalog file format ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in Paris, France. Web : http://asim.lip6.fr/recherche/alliance/ E-mail : alliance-users@asim.lip6.fr DESCRIPTION
Predefined libraries The environment variable MBK_CATA_LIB(1) defines several paths corresponding to the Alliance predefined cell libraries. Each library is in one unix directory. sxlib standard cell library dp_sxlib data-path compiler library rflib registers library ramlib ram library romlib rom library padlib pads lib For each library, a special file named CATAL describes the library contents. This file must be in the same directory as the library cells. For the Alliance tools, the cells described in the predefined libraries are read only. The working library The environment variable MBK_WORK_LIB(1) defines the current working directory. Its default value is . (dot). This directory will contain the user cells, seen as read write by the Alliance tools. It is not necessary to describe all the user cells in a catalog file. But the user can locally define a catalog file for the working library. The local catalog file name is set by the environ- ment variable MBK_CATAL_NAME(1), CATAL by default. Alliance will concatenate all catalog files of the predefined libraries and the optional catalog file of the working library to access the attributs of each cell. Cells attributs A cell may be characterized by four attributs: C this attribut means that the cell is a leaf cell in the context of a recursive flatten, for either the layout or netlist view. The cell will not be flattened. G this attribut means that the cell has an existing equivalent GDS or CIF representation. It is used by the sym- bolic to real translation tool, s2r(1), to make direct replacements. F this attribut means that the cell is used as a feed through. D this attribut is used only in the user defined catalog. As the user is not allowed to delete a cell in a prede- fined library, it is possible to virtually remove a cell of a predefined library with the D attribut in the user defined catalog. EXAMPLE
a2_y C a2p_y C a3_y C a3p_y C n1_y C na2_y C p1_y C tie_y C . . . p1_y G . . . tie_y F SEE ALSO
mbk(1), sxlib(1), incatalog(3), incatalogdelete(3), incatalogfeed(3), incataloggds(3), MBK_CATA_LIB(1), MBK_CATAL_NAME(1), MBK_WORK_LIB(1). BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory. We need your feedback to improve documentation and tools. ASIM
/LIP6 October 1, 1997 CATAL(5)
All times are GMT -4. The time now is 08:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy