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
bye
endl
############### End of script
########################################
When i run this script, ( without the 'prompt', so
that i can see the responses ), i find that $1 and $2
are not
substituted, but are taken as blank spaces.
If you could help me find out why, i'd be very
grateful!!!
regrads
hrishy
--- "John P. Looney" <john at antefacto.com> wrote: > On
Tue, May 22, 2001 at 07:52:05AM +0100, hrishy
> samant mentioned:
> > could anybody please provide with an example on
> how to
> > call an execute a macro from a shell script.
>> What sort of Macro ? It's not a term usually used
> in Unix - do you mean
> an alias, or a shell function ?
>> Kate
>> --
> When I say 'free', I mean 'free': free from bond,
> of chain or command:
> to go where you will, even to Mordor, Saruman, if
> you desire. "
> -- Gandalf, paraphrasing the choice between Free
> and Non-free software
>> --
> 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!