Re: Create log file from script code..



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... :)
.



Relevant Pages

  • Re: FreeBSD as a router
    ... You might also check out monowall. ... It is a stripped down version of FreeBSD ... that can run off a small flash card and has a web interface. ...
    (freebsd-questions)
  • Re: proxy
    ... to charge each user (preferably username and password authentication) ... for the amount of data used. ... I think monowall can do that, it is build on freebsd. ...
    (freebsd-questions)
  • Re: stdout/stderr/???
    ... The difference is not Linux vs FreeBSD but a question ... of the shell you are using -- I assume 'bash' under Linux ... An infinite loop while running or compiling the driver code? ... > tty, but that tty does not accept input ...
    (freebsd-questions)
  • Re: Backspace
    ... But actually I'm using Bourne shell on FreeBSD 6.1 just like the ... Solaris in lab, and the FreeBSD is freshly installed, I have checked ... I think Solaris was just like the above. ... shells in UNIX environments have startup files to customize the key ...
    (freebsd-questions)
  • Re: Backspace
    ... But actually I'm using Bourne shell on FreeBSD 6.1 just like the ... Solaris in lab, and the FreeBSD is freshly installed, I have checked ... Programs like emacs generally use terminfo and termcap databases that define keys and other terminal capabilities. ... >> MailScanner thanks transtec Computers for their support. ...
    (freebsd-questions)