11-12-2014
Confirm the execution of Copy command is successfull or not
All,
I have to copy huge file from one location to another using python . I want to make sure the execution of Copy command is successful and all the files are copied properly (there has not been any abrupt interruption to the copy process or error like no space available is encountered during the execution of copy ) .
Please note that I do not have modification access on the directory from where I am copying .
Thanks
10 More Discussions You Might Find Interesting
1. HP-UX
Hi All,
I am not able to check the output of sqlplus command if it fails.
can any body please help me in this regard. (5 Replies)
Discussion started by: plaban.rout
5 Replies
2. UNIX for Advanced & Expert Users
Hi,
I tried logging into a UNIX system with appropriate logins.. It takes lot of time to show prompt.. when i press control C it gives me the prompt.. I observed that the .cshrc file not getting executed successfully.. when i try myself sourcing .cshrc file it doesnot do it...
Please let me... (1 Reply)
Discussion started by: shafi2all
1 Replies
3. Shell Programming and Scripting
Hi,
I have a script to FTP the files to other unit.
Manually this script is running fine & files are getting transferred.
But running the same script using crontab does not transfer files, although the cron log shows that the file was executed.
PLz suggest (2 Replies)
Discussion started by: sandeep_kmehra
2 Replies
4. UNIX for Dummies Questions & Answers
Hello everybody,
Can anybody tell me how do we comfirm the execution of a scheduled job ?
In other words, how do I know whether my scheduled script is being executed or not ?
Thanks
Jitu JK (2 Replies)
Discussion started by: jitu.jk
2 Replies
5. UNIX for Advanced & Expert Users
Hi,
I am using SFTP for transferring files to remote server. Below is the snipped i am using for my sftp program
echo "lcd $i_localdir">/tmp/sftp_Batch
echo "cd $i_destdir">>/tmp/sftp_Batch
echo "put $i_filename">>/tmp/sftp_Batch
echo "chmod 644... (2 Replies)
Discussion started by: Ankgne
2 Replies
6. Shell Programming and Scripting
Need to check whether the source file(FTP'ed file) is completly copied or not such that I can further action on the same. I have created the below script to achieve this by checking for every 10secs to whether file size is same or not but it may create a problem if the file transfer is slow and if... (4 Replies)
Discussion started by: palanisvr
4 Replies
7. Shell Programming and Scripting
Hi all,
i'm a newbie here, I'm just wondering how can i call my second script if it's contain successfull.
script1.sh
how can i call my 2nd script if he contain SUCCESSFULL
script2.sh
SUCCESSFULL
please advise,
Thanks, (10 Replies)
Discussion started by: nikki1200
10 Replies
8. Shell Programming and Scripting
Hi Experts,
I am very much new to linux scripting, I am currently working on reducing my manual work and hence writing a script to automate few task.
I am running below command to snmpwalk the router..
snmpwalk -v 3 -u WANDL_SU -a MD5 -A vfipmpls -x DES -X VfIpMpLs -l authPriv... (19 Replies)
Discussion started by: Hanumant.madane
19 Replies
9. Shell Programming and Scripting
below is the output xml string from some other command and i will be parsing it using awk
cat /tmp/alerts.xml
<Alert id="10102" name="APP-DS-ds_ha-140018-componentFailure-S" alertDefinitionId="13982" resourceId="11427" ctime="1359453507621" fixed="false" reason="If Event/Log Level(ANY) and... (2 Replies)
Discussion started by: vivek d r
2 Replies
10. UNIX for Dummies Questions & Answers
All,
I have to copy huge file from one location to another using python . I want to make sure the execution of Copy command is successful and all the files are copied properly (there has not been any abrupt interruption to the copy process or error like no space available is encountered during... (5 Replies)
Discussion started by: IshuGupta
5 Replies
cmcp(1m) cmcp(1m)
NAME
cmcp - Copy files between Serviceguard nodes
SYNOPSIS
cmcp [-rv] [src_node:]src_file [...] [dest_node:]dest_file
DESCRIPTION
cmcp copies files and/or directories between Serviceguard nodes.
cmcp is limited in several ways. cmcp is best suited for situations where other remote copy facilities are not available. For a more full
featured tool for copying files between Serviceguard nodes, see ccp(1m) provided by Distributed Systems Administration Utilities.
To use this command, the local user must have the root access role on each of the involved nodes. For more information on Serviceguard
access control policies, see the manual, Managing Serviceguard.
Paths may be relative to the current working directory or specified absolutely. The current working directory on a remote node is assumed
to be the same as the local node's directory. Copies between two remote hosts are permitted.
If a file or directory already exists on the destination node, the destination node's copy will be overwritten with no prompting.
The cmcp command is not suited for large files or large numbers of files and may result in a heavy load on the command and Serviceguard
daemons. Other tools such as ccp should be considered for these purposes.
Options And Arguments
-r Recursively copy entire directories.
-v Verbose output will be displayed.
src_node
Serviceguard node to retrieve the file from. Defaults to the local node.
src_file
Path to source file on src_node.
dest_node
Serviceguard node to copy file to. Defaults to the local node.
dest_file
Path to copy src_file to on the dest_node.
RETURN VALUE
cmcp returns the following values:
0 Successful completion.
1 Command failed.
EXAMPLES
Copy the local file /etc/hosts to remote node node1
cmcp /etc/hosts node1:/etc/hosts
Copy the remote file /etc/passwd on node1 locally
cmcp node1:/etc/passwd /tmp/passwd.poe
Copy a local script directory to a remote node
cmcp -r /etc/cmcluster/scripts node1:/etc/cmcluster
AUTHOR
cmcp was developed by HP.
SEE ALSO
rcp(1), scp(1), ccp(1m), cmsync(1m), cmexec(1m), cmdo(1m), cmquerycl(1m), cmviewcl(1m)
Requires Optional Serviceguard Software cmcp(1m)