The control-C is a request for the shell to send SIGINT to the program it has running on the foreground. Which is script A. Probably the easiest is (either from another shell, or after you've put script A in the background) kill -2 PID where PID is the process ID of script B.