tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Labanowski <...@osc.edu>
Subject Re: tomcat process dies out... (fwd)
Date Tue, 29 May 2001 09:03:04 GMT


> 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: jkl@osc.edu 
1224 Kinnear Rd,             |    http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163      |    http://www.osc.edu/


Mime
View raw message