LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-30-2018, 09:35 AM   #16
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,602

Rep: Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361

Quote:
Originally Posted by carpa View Post
pan64,
The app must be in continuous looping and never die.
This is what you wish. But as you explained the app cannot start without a terminal (but later you can close it). Is it true at all?
 
Old 05-30-2018, 09:39 AM   #17
carpa
LQ Newbie
 
Registered: May 2018
Location: Sao Carlos, Brazil
Distribution: Debian Jessie, Elementary Loki... in the past: Gentoo, Slackware, Suse
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
This is what you wish. But as you explained the app cannot start without a terminal (but later you can close it). Is it true at all?
Yes, it's the fact.
 
Old 05-30-2018, 10:36 AM   #18
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,602

Rep: Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361
If that was really true you need to construct a pseudo terminal somehow to start this app. But would be nice to be sure (if this is the real reason).
 
Old 05-30-2018, 04:39 PM   #19
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.7.1908
Posts: 4,376

Rep: Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551
Quote:
Originally Posted by carpa View Post
The most important thing is to run nfcDemoApp as a daemon.
...at boot, right?

Can't you just create an init script to do that...run it at boot like any other daemon (httpd, sshd, etc)?
I'm not sure if your distro is using init.d or systemd, so won't try to suggest how to do that.
 
Old 05-30-2018, 06:39 PM   #20
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 423

Rep: Reputation: Disabled
i'm insure of "coproc" helps with anything unless your deep into debian installation shell scripting

yes read bash(1) (man bash), the & works and is not a feature windows users are accustomed to looking for.

HOWEVER: if your logged in and have & running you may find they get closed (kill) when you log out

read bash(1) enough to see that's a bash option. i can't remember it at the momemnt.

If the huponexit shell option has been set with shopt, bash sends a
SIGHUP to all jobs when an interactive login shell exits.

To prevent the shell from sending the signal to a particular
job, it should be removed from the jobs table with the disown builtin

(note it may matter if your shell has job control compiled in and if it's active. usually: yes, yes)

Last edited by X-LFS-2010; 05-31-2018 at 01:00 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] How to Specify Running Time of a Background Process in a Bash Script julianvb Linux - Software 3 01-05-2016 01:50 PM
scripting, perl or bash; run a background process, get pid 2ck Programming 6 04-02-2010 01:16 AM
bash script to accept input ONLY until background process completes andrewstr Linux - Software 2 03-17-2004 01:02 PM
How to run a bash command in the background from perl script professorfrink Programming 3 11-13-2003 04:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration