Re: Create log file from script code..
- From: Bit Twister <BitTwister@xxxxxxxxxxxxxxxx>
- Date: Thu, 30 Mar 2006 16:47:20 -0600
On Fri, 31 Mar 2006 00:15:42 +0200, Geir Holmavatn wrote:
I forgot to say this this is with mOnOwall which is based on FreeBSD, if
that makes any difference.
Yes, you may want to read
http://www.catb.org/~esr/faqs/smart-questions.html
The mOnOwall distro unfortunately does not have any /etc/init.d folder
maybe something in /etc/rc.d*
echo "MyScript started $(date) " >> /tmp/cronjobs.log
However I get an illegal variable name at the $(date) statement. Maybe the
FreeBSD has a completely other syntax..?
Try using the back tics, not apostrophies
echo "MyScript started `date` " >> /tmp/cronjobs.log
I realise that it might probably be more appropriate to ask in a FreeBSD
group...
Or a shell group... :)
.
- References:
- Create log file from script code..
- From: Geir Holmavatn
- Re: Create log file from script code..
- From: Bit Twister
- Re: Create log file from script code..
- From: Geir Holmavatn
- Create log file from script code..
- Prev by Date: Re: Create log file from script code..
- Next by Date: Re: rpm install from rescue CD
- Previous by thread: Re: Create log file from script code..
- Next by thread: Re: Create log file from script code..
- Index(es):
Relevant Pages
|