Greetings:

Working ona shell based application that does an insert when a shell is started,
and, needs to update that record on exit.

You can't set an environment value back to the parent process, so would a fork()
make the most sense?

This currently works in a bash shell .profile implementation.
MYSQL_REC_NO=`date '+%Y%m%d_%H%M%S'`

I want to do this in a c application, instead.
setenv("MYSQL_REC_NO",THE_DATE, 1); only works within the program and
MYSQL_REC_NO dies on return from main.

Anyone doing something similar?

Regards,
Van
-- 
=================================================================
Linux rocks!!!   http://www.dedserius.com/
=================================================================

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to