The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



Thread: script command
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 01-08-2004
Perderabo's Avatar
Perderabo Perderabo is offline
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,355
props, this thread is really close to violating our rule against homework/classwork. But I will help you with this.

Your login shell reads your .profile and thus knows the function. The script command fires up a subshell and the subshell does not read your .profile. So as your first command after you run script, do this:
. .profile