Voytek said:
>
> Jamie Wilkinson said:
>> echo "$0 executed on date/time in $exectime sec" >> /var/logs/$0.log

> how to parse on last '/' or strip the FQpath from $0 ?

hmmm, $0 as first string writes out non-FQ file name, but, otherwise, it
writest out FQ file name:

echo "$0 executed on $now in $
./awstatsproc executed on 2004-08-03 19:19 in 0 sec

echo "$now $0 executed...
2004-08-03 19:21 /usr/local/bin/awstatsproc executed on in 0 sec


-- 
Voytek



-- 
Voytek
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to