Re: [ILUG] executing and calling macros from within a shell script

From: Dave Neary (dave.neary at domain palamon.ie)
Date: Tue 22 May 2001 - 11:09:10 IST


If I understand correctly, the $1 and $2 aren't being passed to a shell,
they're being passed to an ftp shell (which is a bit different). As I
see it $test will work fine, at least it does for me...
ftp -n remotehost < ftptest.ftp
My script (ftptest.ftp):
######## start script ##############
user uname password
macdef test
lcd $1
!pwd
cd $2
pwd

$test /usr/local/src /usr/src/linux
######### end script ###############

Cheers,
Dave.

-- 
David Neary,               E-Mail dave.neary at domain palamon.ie
Palamon Technologies Ltd.  Phone +353-1-634-5059


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:10:24 GMT