• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Application terminates with no trace...

 
Ranch Hand
Posts: 269
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a program that's a spider sort of thing that searches internet and fetches data... Today I tried running it for the first time. It worked just fine for a couple of hours, then I went to sleep and when I woke up - it just stopped.

Absolutely no trace, no exceeption - java isn't running... it's like it just vanished...

I'm thinking that this might be the problem:

nohup sh -c "exec $RUN_CMD >>$NBWA_HOME/log/spider.log" >/dev/null &

This is the way I run it ($RUN_CMD has the java my.main.Class)... But doesn't the error stream get ignored/lost this way?

How can I point the error stream into the same file? Or does anybody have any other thoughts on this?

Thanks!
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This sounds more like a *nix question than a Java question. You might get a quicker response in the Linux/Unix forum.
 
Ivan Jouikov
Ranch Hand
Posts: 269
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good thinking.

http://www.linuxquestions.org/questions/showthread.php?s=&threadid=344771
 
reply
    Bookmark Topic Watch Topic
  • New Topic