Results 1 to 4 of 4

Thread: How to make executable run as deamon ?

  1. #1
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Belgium
    Posts
    252

    How to make executable run as deamon ?

    Purpose is to let a bash script run in the background.
    Any ideas anyone ?
    Thanks already ...

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Belgium
    Posts
    252
    Ok got it ....

    put & right after the command.

    ex. ls&

    preventing it stop when logging off you have to use 'nohup'

    ex. nohup ls&

  3. #3
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041
    --Actually you can ' disown %1 ' or whatever the job # is instead. (This comes in very handy if you wanted unattended operation but forgot the nohup. ) It's a bash internal command: (man bash)

    Code:
    disown [-ar] [-h] [jobspec ...]
                  Without  options,  each  jobspec  is  removed  from the table of
                  active jobs.  If the -h option is given,  each  jobspec  is  not
                  removed from the table, but is marked so that SIGHUP is not sent
                  to the job if the shell receives a SIGHUP.   If  no  jobspec  is
                  present,  and  neither the -a nor the -r option is supplied, the
                  current job is used.  If no jobspec is supplied, the  -a  option
                  means  to  remove or mark all jobs; the -r option without a job-
                  spec argument restricts operation to running jobs.   The  return
                  value is 0 unless a jobspec does not specify a valid job.
    Quote Originally Posted by ktheking
    Ok got it ....

    put & right after the command.

    ex. ls&

    preventing it stop when logging off you have to use 'nohup'

    ex. nohup ls&

  4. #4
    Senior Member registered user
    Join Date
    Nov 2002
    Posts
    1,353
    Another option is to use ctrl+z to put the process on hold and then "bg" to send it to the background. If you want to bring it back for some reason just use "fg" - foreground.

Similar Threads

  1. FTP: Which deamon is used?/ How to restart this deamon?
    By Hermanh in forum General Support
    Replies: 8
    Last Post: 03-27-2008, 05:38 PM
  2. cannot run executable files
    By mooseman in forum General Support
    Replies: 4
    Last Post: 10-11-2004, 03:37 AM
  3. Starting Terminal Server Deamon at start up
    By mbokoma in forum Networking
    Replies: 1
    Last Post: 07-28-2004, 02:18 AM
  4. Make Text Document Executable?
    By proto in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 03-14-2004, 02:26 PM
  5. starting a http deamon, and setting a shared folder
    By punk000 in forum General Support
    Replies: 3
    Last Post: 07-08-2003, 06:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Lot of 32 SAMSUNG 64GB 2Rx4 PC4-3200 ECC REG SERVER RAM M393A8G40AB2-CWE picture

Lot of 32 SAMSUNG 64GB 2Rx4 PC4-3200 ECC REG SERVER RAM M393A8G40AB2-CWE

$22500.00



Samsung 2.5

Samsung 2.5" 870 EVO SSD SATA III 250GB 500GB 1TB Internet Solid State Drive Lot

$90.00



Samsung 24

Samsung 24" S3 Essential IPS 100Hz Monitor | Sealed | Fast shipping

$50.00



Samsung 983 DCT 1.92TB 2.5in SATA III Internal SSD SED MZ-QLB1T9 picture

Samsung 983 DCT 1.92TB 2.5in SATA III Internal SSD SED MZ-QLB1T9

$300.00



RAM-HOL-SAM52CPU RAM USB-C Powered Dock Samsung Tab Active4 Pro & Tab Active Pro picture

RAM-HOL-SAM52CPU RAM USB-C Powered Dock Samsung Tab Active4 Pro & Tab Active Pro

$81.99



RAM-HOL-SAM60CPU RAM USB-C Powered Dock for Samsung Tab Active5 - 3 - 2 picture

RAM-HOL-SAM60CPU RAM USB-C Powered Dock for Samsung Tab Active5 - 3 - 2

$81.99



RAM-GDS-SKIN-SAM54-NG-1 RAM Mounts IntelliSkin® Next Gen for Samsung Tab Active4 picture

RAM-GDS-SKIN-SAM54-NG-1 RAM Mounts IntelliSkin® Next Gen for Samsung Tab Active4

$93.99



Samsung Galaxy Tab SCH-1800 7

Samsung Galaxy Tab SCH-1800 7" 4GB Wi-Fi + Verizon Tablet Working

$30.00



New Samsung 512GB FIT Plus USB 3.2 Gen 1 Type-A Flash Drive MUF-512AB/AM NEW picture

New Samsung 512GB FIT Plus USB 3.2 Gen 1 Type-A Flash Drive MUF-512AB/AM NEW

$120.00



NEW Samsung NoteBook NT930QCG touch LCD Full Screen Assembly Blue picture

NEW Samsung NoteBook NT930QCG touch LCD Full Screen Assembly Blue

$225.77