do an EXPORT in the shell script or the environment variable value won't be available after the shell script terminates.
> MAILVAR="TEST MAIL VAULE" EXPORT MAILVAR - Sandip On Mon, Apr 08, 2002 at 05:15:44PM +0530, Manish K Arya spoke out thus: > hi > i m trying to get value of a environment var in C and php which was set in shell >script > > #test.sh > MAILVAR="TEST MAIL VAULE" > > /*test.c*/ > int main() > { > char *email; > email=getenv("MAILVAR"); > printf("%s",email); > } > > <?php > /*test.php*/ > $email=getenv("MAILVAR"); > echo "$email"; > ?> > > i m getting NULL output in both programs > > pls advise > > --- > Manish Kumar Arya > > > > See Dave Matthews Band live or win a signed guitar > >http://r.lycos.com/r/bmgfly_mail_dmb/http://win.ipromotions.com/lycos_020201/splash.asp > > > ================================================ > To subscribe, send email to [EMAIL PROTECTED] with subscribe in subject header > To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in subject >header > Archives are available at http://www.mail-archive.com/ilugd%40wpaa.org > ================================================= -- Sandip Bhattacharya Mindframe Software Work: sandip @ mindsw.com, http://www.mindsw.com Play: sandipb @ bigfoot.com, http://www.sandipb.net ----------------------------------------------- ================================================ To subscribe, send email to [EMAIL PROTECTED] with subscribe in subject header To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in subject header Archives are available at http://www.mail-archive.com/ilugd%40wpaa.org =================================================