Re: Create log file from script + midnight commander
- From: Jordan Abel <random832@xxxxxxxxx>
- Date: 30 Mar 2006 22:38:30 GMT
On 2006-03-30, Geir Holmavatn <geir@xxxxxxxxxx> wrote:
Hi,
Complete newbie here :-|
I have managed to create a few scripts which are started from crontab.
However I would like a verification that they actually have been executed.
How do I include in my bash script code to append a line like "MyScript was
run at <current date / time>" to the text file 'cronjobs.log' (and that
cronjobs.log is created if it doesn't exist)...
I have tried this:
echo "MyScript started $(date) " >> /tmp/cronjobs.log
.. but get an 'Illegal variable name' error
You're using csh. switch to sh. Or use `date` instead of $(date).
How do I correct the above code to have it run correctly in FreeBSD?.
Another newbie question: How do I install midnight commander i FreeBSD?
Sorry if this is too much to ask, but I learn a lot from examples
Thanks anyway
geir
- References:
- Create log file from script + midnight commander
- From: Geir Holmavatn
- Create log file from script + midnight commander
- Prev by Date: Create log file from script + midnight commander
- Next by Date: Re: sendmail ports
- Previous by thread: Create log file from script + midnight commander
- Index(es):
Relevant Pages
|
Loading