Sponsored Content
Top Forums Shell Programming and Scripting Help with script to transfer files from one server to another Post 302961984 by Peasant on Monday 7th of December 2015 07:04:07 AM
Old 12-07-2015
Is the content of the file_lst populated with 100 of files ?

Check the content of the file and verify that.
Be sure to examine the output of scp, you might hit ARG_MAX limit with this kind of action on that number of files.

Regards
Peasant.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Transfer files from Unix server to Windows using FTP

Dear Friend, I don't know much about unix.I am an VB6.0 Programmer.I need to move an text files as aaa.txt from unix server to windows "D: " driver using the FTP protocol.Is it possible to do this with help of unix shell script.If possible please give some sample codes. Please answer as early... (1 Reply)
Discussion started by: gjsaravanan
1 Replies

2. Linux

transfer files from the server 1 to server 2

I want to transfer files from the server 1 to server 2, but only information available FTP my server 2 How? Is there a script help me in the transfer of files through FTP :( (2 Replies)
Discussion started by: bomozah
2 Replies

3. Shell Programming and Scripting

Shell script to transfer the files from source to target server.

I need to write a shell script to transfer the files every hour from source - target server. The cron job should be running every hour and shouldn't copy already copied files to the remote server ? I was able to write intial script but not able to get the logic for (in the next run it should... (12 Replies)
Discussion started by: radhirk
12 Replies

4. Shell Programming and Scripting

Help needed to transfer list of files to FTP server, to different folders

Hello Unix Gurus, Help required from you. My requirement is something like this I want to create a concurrenct program in Oracle Applications using shell script to transfer files from Apps Server to destination FTP server. I have created custom program, where I will extract all the... (4 Replies)
Discussion started by: amazon
4 Replies

5. Shell Programming and Scripting

SFTP to transfer files from one server to another

Hello, i have to write a script to perform sftp from the remote server to another server. the files which are at the remote location are huge data log files which should be transfered to my server in a particular folder. could you please provide me the general code (simple )... (1 Reply)
Discussion started by: urfrnddpk
1 Replies

6. UNIX for Dummies Questions & Answers

Transfer file from server B to server C and running the script on server A

I have 3 servers A, B, C and server B is having some files in /u01/soa/ directory, these files i want to copy to server C, and i want to run the script from server A. Script(Server A) --> Files at Server B (Source server) --> Copy the files to Server C(Target Server). We dont have RSA key... (4 Replies)
Discussion started by: kiran_j
4 Replies

7. Shell Programming and Scripting

Do I require remote login access to a windows server to transfer files from a UNIX server

Hi All I need to transfer a file from a UNIX server to a windows server. I saw that it is possible to do this using scp command by looking at the forum listed below: ... (2 Replies)
Discussion started by: vx04
2 Replies

8. Shell Programming and Scripting

Transfer files from one server with bash script

Hello to all, I want to copy from one server to another files of last 24 hours with size between 500MB and 2GB. The code below searches last files in 24 hours. find . -mtime -1 In order to copy faster I'd like to compress the files before copying them. How to automate the process of... (8 Replies)
Discussion started by: Ophiuchus
8 Replies

9. Shell Programming and Scripting

Shell scripting to transfer files from one to another server through ftps

Hi Guyz ,, I'm an ERP functional guy , I really need to automate a script which required a shell script but have a little knowledge in shell scripting. I need my generated files to be zipped first in one directory lets say (xyz) and then it needs to transfer another ftp server in... (3 Replies)
Discussion started by: Shogundion
3 Replies

10. UNIX for Beginners Questions & Answers

Not able to transfer files using between server A and B

Hi All, I have generated public and private pair to avoid to enter password manually while sending files through sftp. But still I am facing issues and every-time prompt asking enter password. Below are steps I fallowed to make ssh connection between two servers. 1. Generated public and... (5 Replies)
Discussion started by: renukeswar
5 Replies
DCMD(1) 						      General Commands Manual							   DCMD(1)

NAME
dcmd - expand file lists of .dsc/.changes files in the command line SYNOPSIS
dcmd [options] [command] [changes-file|dsc-file] [...] DESCRIPTION
dcmd replaces any reference to a .dsc or .changes file in the command line with the list of files in its 'Files' section, plus the file itself. It allows easy manipulation of all the files involved in an upload (for changes files) or a source package (for dsc files). If command is omitted (that is the first argument is an existing .dsc or .changes file), the expanded list of files is printed to stdout, one file by line. Useful for usage in backticks. OPTIONS
There are a number of options which may be used in order to select only a subset of the files listed in the .dsc or .changes file. If a requested file is not found, an error message will be printed. --dsc Select the .dsc file. --schanges Select .changes files for the 'source' architecture. --bchanges Select .changes files for binary architectures. --changes Select .changes files. Implies --schanges and --bchanges. --archdeb Select architecture-dependent binary packages (.deb files). --indepdeb Select architecture-independent binary packages (.deb files). --deb Select binary packages (.deb files). Implies --archdeb and --indepdeb. --archudeb Select architecture-dependent udeb binary packages. --indepudeb Select architecture-independent udeb binary packages. --udeb Select udeb binary packages. Implies --archudeb and --indepudeb. --tar, --orig Select the tar file. --diff Select the Debian diff file. Each option may be prefixed by --no to indicate that all files not matching the specification should be selected. It is not possible to combine positive filtering options (e.g. --dsc) and negative filtering options (e.g. --no-changes) in the same dcmd invocation. --no-fail-on-missing, -r If any of the requested files were not found, do not output an error. EXAMPLES
Copy the result of a build to another machine: $ dcmd scp rcs_5.7-23_amd64.changes elegiac:/tmp rcs_5.7-23.dsc 100% 490 0.5KB/s 00:00 rcs_5.7-23.diff.gz 100% 12KB 11.7KB/s 00:00 rcs_5.7-23_amd64.deb 100% 363KB 362.7KB/s 00:00 rcs_5.7-23_amd64.changes 100% 1095 1.1KB/s 00:00 $ $ dcmd --diff --deb scp rcs_5.7-23_amd64.changes elegiac:/tmp rcs_5.7-23.diff.gz 100% 12KB 11.7KB/s 00:00 rcs_5.7-23_amd64.deb 100% 363KB 362.7KB/s 00:00 $ Check the contents of a source package: $ dcmd md5sum rcs_5.7-23.dsc 8fd09ea9654cda128f8d5c337d3b8de7 rcs_5.7.orig.tar.gz f0ceeae96603e823eacba6721a30b5c7 rcs_5.7-23.diff.gz 5241db1e231b1f43ae5514b63d2523f8 rcs_5.7-23.dsc $ $ dcmd --no-diff md5sum rcs_5.7-23.dsc 8fd09ea9654cda128f8d5c337d3b8de7 rcs_5.7.orig.tar.gz 5241db1e231b1f43ae5514b63d2523f8 rcs_5.7-23.dsc $ SEE ALSO
dpkg-source(1), dpkg-genchanges(1). AUTHOR
This program was written by Romain Francoise <rfrancoise@debian.org> and is released under the GPL, version 2 or later. DEBIAN
Debian Utilities DCMD(1)
All times are GMT -4. The time now is 03:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy