![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| FTP run from shell script gives slow transfer rates | Countificus | Shell Programming and Scripting | 8 | 04-07-2009 05:50 PM |
| Binary File transfer from AIX Unix to Red Hat Linux | shunter63 | Linux | 2 | 04-03-2009 06:07 PM |
| transfer a variable in a shell script? | fedora | Shell Programming and Scripting | 11 | 09-22-2006 01:56 PM |
| shell script conversion to binary | bcheaib | Shell Programming and Scripting | 3 | 08-01-2004 05:41 AM |
| Binary File Transfer | DPAI | High Level Programming | 2 | 03-04-2002 03:12 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
HELP - Transfer File as Binary in FTP Shell Script Problems
Hey Everyone,
Can someone please help me with my problem. I am writing a FTP Shell Script but I want it to convert the file I created to binary before the FTP is executed. Notice I already have 'binary' in the script. I have tried setting the parameter to binary but my problem is that when the script is executed and the file is sent to my server just fine but the file is still in ASCII mode when I type the 'file test.txt' command. Does anyone know how to transfer files in binary mode? Here is my simple script: #!/bin/sh filename="file.txt" hostname="####.com" username="me" password="1234" ftp -un $hostname <<EOF quote USER $username quote PASS $password binary put $filename quit EOF Thanks |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|