LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-18-2018, 05:15 AM   #1
Divinorium
LQ Newbie
 
Registered: Dec 2018
Posts: 2

Rep: Reputation: Disabled
Console Application not working when using nohup


Hello.

I have a console application made with .net core 2.2 that i'm trying to run into a serve CentOS 7. I'm using putty to connect to the server and do what i need. the thing is: when i use the ./app command to run it it runs fine, but when i close putty it seems like the program close.

So i tried the command nohup ./app but it brings the error
nohup: ignoring input and appending output to ‘nohup.out’
Aborted (core dumped)
Anyone has any idea why?
 
Old 12-18-2018, 05:21 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,927

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
your title is misleading, because your app is ok. Just you want to detach it from your putty.
first of all you can try screen. it will automatically detach from putty if you close and you can reattach later.
But if you want to use nohup you may need to take care about stdout/stderr - and do not forget about & at the end:
https://ss64.com/bash/nohup.html
 
1 members found this post helpful.
Old 12-18-2018, 05:22 AM   #3
Divinorium
LQ Newbie
 
Registered: Dec 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
your title is misleading, because your app is ok. Just you want to detach it from your putty.
first of all you can try screen. it will automatically detach from putty if you close and you can reattach later.
But if you want to use nohup you may need to take care about stdout/stderr - and do not forget about & at the end:
https://ss64.com/bash/nohup.html
Hello.

Thanks for the answer!

Do you have any link for the screen usage? Also what my title should be?
 
Old 12-18-2018, 07:38 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,927

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
title: nohup error or something similar.
screen has a man page and a good tutorial can be found here: https://www.rackaid.com/blog/linux-s...al-and-how-to/, but you can look for another one if you wish.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] nohup, but no nohup.out -- how to? smc2 Programming 1 10-11-2010 08:13 AM
how to stop "while true; do nohup application; sleep 10; done &" michaeljoser Linux - Software 4 10-09-2007 07:39 AM
nohup command in script doesn't return to system console prompt beammeup Linux - Software 4 02-05-2007 02:01 PM
problem with nohup command and nohup file size vbseeker Linux - General 1 09-17-2006 11:36 AM
nohup & bittorrent-console problem txm123 Linux - Newbie 2 02-25-2006 07:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration