Computing.Net > Forums > Unix > shell script to send a file thru FT

shell script to send a file thru FT

Reply to Message Icon

Original Message
Name: rajkumargnv
Date: August 12, 2004 at 13:56:29 Pacific
Subject: shell script to send a file thru FT
OS: UNIX
CPU/Ram: 256MB
Comment:

I want to write a script that sends a file thru FTP upon execution and calculates the time taken in total transaction.

Please HELP!!!


Report Offensive Message For Removal

Response Number 1
Name: sharathkv
Date: August 13, 2004 at 03:57:25 Pacific
Subject: shell script to send a file thru FT
Reply: (edit)

#!/usr/bin/sh

if [ "$1" = "" ]
then
echo 'usage : putfile filename';
exit 1;
fi

cksum $1

ftp -n IP_ADDRESS <<!
user username
binary
hash
put $1
!
cksum $1
exit
bye
!


Report Offensive Follow Up For Removal

Response Number 2
Name: venugantis
Date: August 13, 2004 at 04:35:33 Pacific
Subject: shell script to send a file thru FT
Reply: (edit)

hi ...

can any one let me know what is the command to get the last 6 characters from the string
/ftpload/wrsv0_com_db01_200101.. Please ..

//sree


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: shell script to send a file thru FT

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software