Register
It is currently Wed Apr 16, 2014 1:41 pm

Bash startup option required to change default directory


All times are UTC - 6 hours


Post new topic Reply to topic  [ 1 post ] 
Author Message
 PostPosted: Mon Sep 22, 2008 7:36 pm   

Joined: Mon Sep 22, 2008 6:45 pm
Posts: 1
Hi Friends,

I am facing a prblem with bash invocation.

I am invoking bash using execvp() function call. but after executing this the default current directory is /dev.

I want to change it to $HOME. I tried to use --rcfile option and from that file I was trieng to issue command "cd $HOME".

The problem is it is not reading that file itself i guess, because the command inside the file is not getting executed.

Please let me know how can i solve this problem.

Hoope u'll reply soon.

Thank you in advance.


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP