The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 06-28-2006
new2ss new2ss is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 133
Verify scp return status

Hi all

below is a snippet of my perl code
Code:
system ("scp -pq  $dest_file $path");
How i can i trap the return status? ie if the scp fails how can i know ?