LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack Search this Thread
Old 06-01-2008, 04: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, 04:52 PM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,089

Rep: Reputation: 207Reputation: 207Reputation: 207
echo $HOME
 
Old 06-01-2008, 04: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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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


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

Main Menu
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