how to run script at background

Hi all,

I have a script like:

echo Please input list file name:
read listn
for file in `cat $listn.txt`
do
send_file $file
done

normally, I will run the script like:
:. resendfile
Please input list filename:
list1

#Then, the script will resend all file from the list1. However, the list1 over 1000 file need to send. Can I run this at background and I don't need to keep the window open?

for running as background

. script &

and if you want to run this script even if you log out then use "nohup".

you mean:
nohup .script &

yes and instead of using in current shell change the file permission writable
-rwx.....
and run

nohup script &

just give the command as

<script name> &

it would work