Hi there --
I have a script that creates a .forward file in a newly created user's home directory. The syntax that I am using is the following:
Code:
# Create the .forward file in the user's home directory.
/bin/touch "/home/$username/.forward"
I want to have the script insert the user's e-mail address into the .forward file that was just created. The command syntax that I thought of using is the following:
Code:
# Insert the user's e-mail address into the .forward file.
/bin/cat $username.cox.net > "/home/$username/.forward"
Will this syntax work, or is there another that it should be done? Thanks.