You can test for scp's successful completion by looking to see if the exit status is 0 once it finishes. Here's an example:
Code:
#!/bin/bash
echo starting transfer
scp $sourcepath/* user@\$destserver:\$destpath >> /tmp/log.$$
OUT=$?
if [ $OUT = 0 ] ;then
echo transfer successful
else
echo oh no, ftp transfer failed somehow. check log file in tmp for details
fi
Are your scp transfers typically failing? How large are the files you are transferring?
You could also have the script check for files before it transfers, parse the log to see if it needs to retry, email the log files elsewhere, etc.
Hi Frdz
I have a problem like.
I need to transfer a file from source to destination (different systems with different IPs) using "scp" command and before transfer the file i have to check the file is available in destination or not, if it is there no need to transfer, otherwise we have to... (5 Replies)
I have a shell script which uses SCP command to transfer the files from one server to another server. The files are getting transferred successfully, but the problem is the files transferred to the destination server didnot have the permissions as that of the files on the source server.
Command... (5 Replies)
I am not able to throw a file from server173 to server067
i.e.
wlsuser@server173> scp /tmp/harsha.txt wlsuser@server067:/tmp
fails
However, I am able to pull a file from server173 onto server067's /tmp dir
wlsuser@server067> scp wlsuser@server173:/tmp/harsha.txt /tmp... (2 Replies)
Whenever I transfer file through SCP between two server it gives below given message.....Is there a way to avoid it....
Target server : newyork
$ scp ABC27801.iue newyork:./iABC/x0017801.iue
Message
=====
This system is for the use of authorized users only. Individuals using this... (1 Reply)
I have 3 AIX server namely - Server 1 , Server 2 and Server 3.
And have done SCP setup between Server 1 and Server 2 so that i dont have to give password when i transfer file from Server 1 to Server 2 by setting public key between the server.
Q1. If the unix password of the target server... (3 Replies)
On unix AIX server, when I am trying to transfer file from one directory to another directory on the same server through a program(where i call the script) it gives error "Lost Connection". (5 Replies)
I am testing the following command to transfer a file from my server (AIX 5.2) to another server. I was able to generate the keys and sent them the public key.
scp -v -P 4030 /home/lawson/.ssh/jimtest.txt someuser@some.ftpsite.net:/Inbound/jimtest.txt > jimtest_out.txt 2>&1
Based on... (3 Replies)
I am trying to transfer a zip file of around 30 MB in my automation script using scp from system A to B.
When I manually do scp, file is complete transferred but when automation shell script runs it, zip file is not completely transferred.
Stack Trace while doing manual :
Executing:... (1 Reply)
Hi All,
Need some help regarding file transfer between server.
Suppose we have system-A and system-B. To transfer file from system-A to system-B we usually share the
public keys of system-A to system-B and do scp/sftp to transfer a file.
Is it possible that public key of system-B can be... (3 Replies)
Discussion started by: abhi_123
3 Replies
LEARN ABOUT DEBIAN
orte_filem
ORTE_FILEM(7) Open MPI ORTE_FILEM(7)NAME
ORTE_FILEM - Open RTE MCA File Management (FileM) Framework: Overview of Open RTE's FileM framework, and selected modules. Open MPI 1.4.5
DESCRIPTION
FileM is a utility framework used by OpenRTE for a variety of purposes, including the transport of checkpoint files, preloading user bina-
ries, and preloading of user files.
AVAILABLE COMPONENTS
Open RTE currently ships with one FileM component: rsh.
The following MCA parameters apply to all components:
filem_base_verbose
Set the verbosity level for all components. Default is 0, or silent except on error.
rsh FileM Component
The rsh component uses rcp or scp to do its file transfers. This component requires the use of passwordless rsh or ssh between all nodes.
The rsh component has the following MCA parameters:
filem_rsh_priority
The component's priority to use when selecting the most appropriate component for a run.
filem_rsh_verbose
Set the verbosity level for this component. Default is 0, or silent except on error.
filem_rsh_rcp
The program to use to copy files. Generally will be rcp or scp.
filem_rsh_rsh
The program used to remotely log into a given machine and remove files. Generally will be rsh or ssh.
none FileM Component
The none component simply selects no FileM component. All of the FileM function calls return immediately with ORTE_SUCCESS.
This component is the last component to be selected by default. This means that if another component is available, and the none component
was not explicity requested then ORTE will attempt to activate all of the available components before falling back to this component.
SEE ALSO orte-checkpoint(1), orte-restart(1), opal-checkpoint(1), opal-restart(1), orte_snapc(7), opal_crs(7)1.4.5 Feb 10, 2012 ORTE_FILEM(7)