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
DHCP problem and eth1 problem sllinux UNIX for Dummies Questions & Answers 0 10-23-2009 03:45 AM
Mail Problem. Maybe, it is a DNS Problem! pintalgi Red Hat 1 07-19-2009 05:01 PM
user login problem & Files listing problem. pernasivam AIX 1 06-18-2009 10:09 AM
problem in finding a hardware problem girish.batra SUN Solaris 8 09-09-2008 11:10 AM
ssh script problem problem pcjandyala Shell Programming and Scripting 2 07-31-2008 04:27 PM

 
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
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 10-31-2009
protocomm protocomm is online now
Registered User
  
 

Join Date: Mar 2009
Location: france, montpellier
Posts: 150
ftp problem

Hello,

I have a very simple script that put a file in server ftp


Code:
#!/bin/bash
var="ITW-trail-templiers-samedi"
cd /Users/$USER/Desktop
ftp -n >&1 << EOF
open server
quote user "user"
cd oberon
binary
put "$var"
bye
EOF

I have error :

Code:
200 Type set to IMAGE.
 remote: ITW-trail-templiers-samedi
ftp: Can't open `ITW-trail-templiers-samedi\r': No such file or directory
221 Goodbye

I don't understand ??? If i write the name of the file, not $var....it's works fine ????

---------- Post updated at 02:53 AM ---------- Previous update was at 02:40 AM ----------

I find my error, my file must be an argument of my script

Thanx
 

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 09:32 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