The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to automatically detect command failure ashok2008 UNIX and Linux Applications 2 04-24-2008 03:27 PM
while loop to copy on failure jjinno Shell Programming and Scripting 2 12-10-2007 04:17 PM
copy command sadiquep Linux 2 04-03-2007 12:01 AM
failure of at command DKuester UNIX for Dummies Questions & Answers 5 10-10-2003 01:58 PM
copy command perleo Shell Programming and Scripting 1 12-08-2002 07:24 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-16-2007
mynix mynix is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 1
copy command failure

A cp command failure occured on our production system. A shell script copies a source file to a temporary directory -
cp <source file on mount point 1> <dest path on mount point 2>

The same script ran successfully for another file, about 3mins after the failure.

The script did not have a return value check for cp command so I donot know the return value.

Has anyone faced a similar situation? What can be the typical causes for failure of the cp command?


Thanks,
Mynix
  #2 (permalink)  
Old 12-16-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by mynix View Post
Has anyone faced a similar situation? What can be the typical causes for failure of the cp command?
1. disk space on target, or quotas

2. network problems if an NFS mount

3. hardware problems at either source or target.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:24 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0