LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 06-01-2008, 05:34 PM   #1
babag
Member
 
Registered: Aug 2003
Posts: 365

Rep: Reputation: 30
bash - return home path


using:
Code:
string homepath = getenv("HOME");

cout << homepath << endl;
to return '/home/user_acct' in c++.
how do i do the same in bash?

thanks,
BabaG
 
Old 06-01-2008, 05:52 PM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,159

Rep: Reputation: 258Reputation: 258Reputation: 258
echo $HOME
 
Old 06-01-2008, 05:59 PM   #3
babag
Member
 
Registered: Aug 2003
Posts: 365

Original Poster
Rep: Reputation: 30
well, that's certainly simple.

thanks!
BabaG
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
exim authenticated smtp and return path kev82 Linux - Networking 0 09-03-2007 02:43 PM
qmail spoofing return-path (from field) j0hnd0e Linux - Server 1 03-29-2007 11:11 PM
Sendmail re-writing return path hammer65 Linux - Software 1 02-01-2007 11:59 AM
php mail script return path richard22 Linux - Software 1 08-22-2003 05:10 AM
Sendmail return path dj_relentless Linux - General 2 06-07-2002 07:40 AM


All times are GMT -5. The time now is 01:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration