title: How to stop a zsh script from being suspended (tty output)
body: <p>I have a zsh script that I want to run such that it also loads up my .zshrc file.
  I believe I have to run my script in interactive mode?</p>
  
  <p>Thus, my script begins like:</p>
  
  <pre><code>#!/bin/zsh -i
  
  if [ $# = 0 ]
  then
      echo "need command line paramter..."
      exit
  fi
  </code></pre>
  
  <p>However, when I try to run this script in the background, my script becomes suspended (even if I pass in the correct number of parameters):</p>
  
  <pre><code>[1]  + suspended (tty output) 
  </code></pre>
  
  <p>My question is: How can I make a script that can run in the background that also loads my startup .zshrc file? If I have to put it into interactive mode, how can I avoid the suspension on tty output problem?</p>
  
  <p>Thanks</p>