Computing.Net > Forums > Programming > Linux shell script

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

Linux shell script

Reply to Message Icon

Original Message
Name: tonysathre
Date: July 11, 2007 at 23:41:41 Pacific
Subject: Linux shell script
OS: Windows XP Pro SP2
CPU/Ram: P4 2.60 Ghz\ 768 MB
Model/Manufacturer: Dell Dimension 4550
Comment:

What is wrong with this script?

#!/bin/bash
for file in `ls -1 /home/omalik/gamecreate/coduo/28960/pb/svss/*.png`
do
ftp -i -v << :EOF
open soulbleed.servegame.com
passive
binary
put $file
quit
:EOF
done

The error I'm getting is:

./batch_ftp: line 12: syntax error: unexpected end of file

Thanks,

Tony

"Computer security." — Oxymoron


Report Offensive Message For Removal


Response Number 1
Name: tonysathre
Date: July 12, 2007 at 00:47:56 Pacific
Reply: (edit)

Nevermind, I fixed it.

"Computer security." — Oxymoron


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home








Do you own an iPhone?

Yes
No, but soon
No


View Results

Poll Finishes In 6 Days.
Discuss in The Lounge
Poll History




Data Recovery Software