virtual machine blocked

i succefully added the folowing script to

/etc/profile

it recreates the pilpline but

when i get access to the virtual machine by ssh it is blocked
like this:
Password:

Last login: Sun Apr 5 03:08:51 2009 from linux-ux35.lan
Have a lot of fun…

i have to tape ctrl + c to
have
linux-test1:~ #

i have to tape ctrl +c to get access to it

here is the script

if  -e /tmp/mysql.pipe ]; then
     while  -e /tmp/mysql.pipe ]
     do
         mysql -u root --password= syslog< /tmp/mysql.pipe
     done
else
     mkfifo /tmp/mysql.pipe
fi

i think the problem is from

mysql -u root --password= syslog< /tmp/mysql.pipe

i succefully added the folowing script to

/etc/profile

it recreates the pilpline but

when i get access to the virtual machine by ssh it is blocked
like this:
Password:

Last login: Sun Apr 5 03:08:51 2009 from linux-ux35.lan
Have a lot of fun…

i have to tape ctrl + c to
have
linux-test1:~ #

i have to tape ctrl +c to get access to it

here is the script




if  -e /tmp/mysql.pipe ]; then
     while  -e /tmp/mysql.pipe ]
     do
         mysql -u root --password= syslog< /tmp/mysql.pipe
     done
else
     mkfifo /tmp/mysql.pipe
fi

i think the problem is from

mysql -u root --password= syslog< /tmp/mysql.pipe

note when i write into

/etc/profile

./home/sami/pipe.bash

here what happens when booting the virtual machine:
Last login: Sun Apr 5 03:48:21 2009 from linux-ux35.lan
Have a lot of fun…
-bash: ./home/sami/pipe.bash: No such file or directory

need help here