> The commands can also look like:
> 
>  Under /bin/sh, /bin/ksh, /bin/bash, etc:
> 
>   nohup ./startup.sh -f server_1.xml > /tmp/mytomcat.log 2>&1 &

This means:
 nohup -- do not kill process on terminal interrupt
 > file  -- redirect STDOUT to file
 2>&1  -- join STDERR(2) with STDOUT (1)
 & put to background



> Under /bin/csh or /bin/tcsh
> 
>  nohup ./startup.sh -f server_1.xml >&! &

I made a mistake here and forgot to put the file. SHould be:

  nohup ./startup.sh -f server_1.xml >&! /tmp/mytomcat.log &


  >&! means: send STDERR and STDOUT to a file and overwrite file if exists
  & means: do it in background

Jan K. Labanowski            |    phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center    |    Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd,             |    http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163      |    http://www.osc.edu/

Reply via email to