08-17-07 12:24 AM
Ashish <KundraInc@gmail.com> writes:
> Hello friends,
>
> Thanks so much for your help on the last issue. I have another
> issue...
>
> The script I wrote finds a file that has a filename which contains
> today's date in a particular format. I haven't done this yet, but I
> also need to pass on the local addresses of these files to a null
> program.
>
> The problem I have is that the file will not fully download. I have
> pasted the script and the text from my Terminal window.
>
> Here's the script:
>
> #! /bin/sh
>
> FORMDATE=`date '+%Y%m%d'`
>
> echo "The date is $FORMDATE"
>
> ftp <<**
> open ftp.m-qube.com
> prompt off
> mget *$FORMDATE.csv
> mget *$FORMDATE
> bye
> **
I am not going to answer you question -- I don't know what is
wrong! -- but I would suggest that you switch to using a command line
tool like wget. It is *designed* for scripting network operations and
cab do "globbing". If it suits, is likely to be much simpler than
driving an interactive program with a here-document.
<snip>
--
Ben.
[ Post a follow-up to this message ]
|