The UNIX and Linux Forums  


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 05-06-2008
kittusri9 kittusri9 is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 40
how to connect sftp server using script

Hi friend

I have a command: sftp -v dtxsttp90102@dtx.us.dell.com

I need to connect sftp server using above command and grep for some files
and need to back to script

can anyone tell me how to write script

connectingSFTP.sh
--------------------
sftpCmd=`sftp -v dtxsttp90102@dtx.us.dell.com'
echo $sftpCmd

but its not working

thanks
krish.