i have create a function in the .profile To get it work i log out and log in again . The function works fine, typing the name of the function"details" appears information for the system (who,time...)
The problem is when i start the script recording command the function does not really work
i don't know why does this
any help
??
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