Hi Rajesh,
   First of all .profile or .bashrc or .cshrc are 
the start up files which basically arent used to
execute or run anything. These files are used for
sourcing the environment variables, setting aliases
etc. So what you can do is inside your script , if
you are using ksh then ...

-->start
#!/bin/ksh
. /full_path_of_profile_file
paste the actual script
--->end
  Note that do not execute anything in the .profile
file at all. Use it only to source the environment
variables.

HTH,
Satish/

Rajesh Fowkar <[EMAIL PROTECTED]> wrote: 
>I want to run .profile from the user pf before
running >the above 
>script.
>If I put this stuff(setting environment variables) in
>pfbk script than it is not getting executed.



=====
-----------------------------------------------------------------------
Ummm, well, OK.  The network's the network, the computer's the computer.
Sorry for the confusion.
                -- Sun Microsystems
-----------------------------------------------------------------------
Visit me: http://www.geocities.com/asatsi

__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail � Free email you can access from anywhere!
http://mail.yahoo.com/

-----------------------------------------------------------------------
For information on this and other Linux India mailing lists check out
http://lists.linux-india.org/

Reply via email to