hi Niall
hey pal ur a genius .......you made my day
baby.........
regards
hrishy
--- Niall O Broin <niall at linux.ie> wrote: > On Tue,
May 22, 2001 at 10:13:01AM +0100, hrishy
> samant wrote:
>> > I'm running HP-UX.
> >
> > Normally, when you ftp to a host, you are allowed
> to
> > define a macro, using the macdef command, and
> execute
> > it with arguments, preceding the macro name with a
> $.
> >
> > But when i attempt to do the same thing from
> within a
> > shell script, i run into problems.
> >
> >
> > ftp daytona < prompt
> >
> > macdef test
> > lcd $1
> > !pwd
> > cd $2
> > pwd
> >
> > $ test /home/ksubrama/ftpsrc /home/kode/ftpdest
>> $1 and $2 are being substituted by the shell. In
> your script, escape the $
> symbols (replace $ by \$) and it should work as you
> would like.
>>>> Regards,
>>> Niall
>> --
> Irish Linux Users' Group: ilug at linux.ie>http://www.linux.ie/mailman/listinfo/ilug for
> (un)subscription information.
> List maintainer: listmaster at linux.ie
____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!