[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: HOW TO use hook? (Re: New mirror scripts for Debian mirrors)



>>>>> In <[🔎] 87ej1ldzq4.fsf@vorlon.ganneff.de> 
>>>>>	Joerg Jaspert <joerg@debian.org> wrote:

>> >  I hope to run a command with 2 args on HOOK1 (for example) as bellow:
>> > /home/ftpadm/bin/irc_notify.sh ${NAME} '1st stage start...'
>> > (${NAME} is defined in ftpsync script)
>> >  So, I set HOOK1 variable as bellow:
>> > HOOK1="/home/ftpadm/bin/irc_notify.sh ${NAME} '1st stage start...'"
>>
>> >  It will cause error with bellow (${NAME} = ftp-sync-debian-jp):
>>
>> Yep. Thats thanks to the way I wrote it, just haven't thought of
>> arguments as none of my hookscripts ever had the need of them.
>> But as it is easily fixable, it now accepts arguments too.

 Thanks :-)

-- 
ISHIKAWA Mutsumi
 <ishikawa@debian.org>, <ishikawa@hanzubon.jp>, <ishikawa@osdn.jp>


Reply to: