Hello Martin
Thank you for taking the time to explore this for us. I think I'd better
explain this for you. I need something which will produce data suitable for
printing out in a table so that the doctor can look at it, and see what was
taken and when.
Thanks again but shell tools and things aren't what I need; I'm not percent
enough to handle those and now issn't really the time to learn.
Thank you again.
Lynne
On 16 Dec 2011, at 22:21, Martin McCormick wrote:
This is a suggestion which I cooked up very quickly but which
will let you build a log file. What it produces is a single line
per entry containing three pieces of information separated by a
,. It is a unix shell script and you can run it on a Macintosh.
The file it writes to is called logfile and it just keeps
growing each time you run it.
The script is named medlog and I will put it at the very bottom.
Please save it to the Mac under a file named medlog and then do
the following.
Activate terminal.
Type the following:
chmod +x medlog
You are now ready to try it out. Do so by typing
./medlog
It will ask you for the medication name. Spaces are
okay, but hit enter when you are done with the name.
It will then ask you for the quantity and you enter that
and hit Enter when you are done.
You will get the shell prompt back and you can read the
new file called "logfile" that it made.
This is the script. Cut here.
#!/bin/sh
logtime=`date +%y%m%d%H%M`
echo ""
echo -n "med name "
read medname
echo -n "Quantity "
read quantity
echo $medname","$logtime","$quantity >>logfile
=======================================
The Techno-Chat E-Mail forum is guaranteed malware, spyware, Trojan, virus and
worm-free
To modify your subscription options, please visit for forum's dedicated web
pages located at
http://mail.tft-bbs.co.uk/mailman/listinfo/techno-chat
You can find an archive of all messages posted to the Techno-Chat group at
either of the following websites:
http://mail.tft-bbs.co.uk/pipermail/techno-chat/index.html
Or:
<http://www.mail-archive.com/[email protected]>
you may also subscribe to this list via RSS. The feed is at:
<http://www.mail-archive.com/[email protected]/maillist.xml>
---------------------------------------
=======================================
The Techno-Chat E-Mail forum is guaranteed malware, spyware, Trojan, virus and
worm-free
To modify your subscription options, please visit for forum's dedicated web
pages located at
http://mail.tft-bbs.co.uk/mailman/listinfo/techno-chat
You can find an archive of all messages posted to the Techno-Chat group at
either of the following websites:
http://mail.tft-bbs.co.uk/pipermail/techno-chat/index.html
Or:
<http://www.mail-archive.com/[email protected]>
you may also subscribe to this list via RSS. The feed is at:
<http://www.mail-archive.com/[email protected]/maillist.xml>
---------------------------------------