Find the answer to your Linux question:
Results 1 to 3 of 3
how is it possible to receive an email after the nohup command has been finished? Could you give an example for the folloeing command? Code: nohup script.sh & Thanks in ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2012
    Posts
    46

    Send email after nohup finished


    how is it possible to receive an email after the nohup command has been finished?
    Could you give an example for the folloeing command?

    Code:
    nohup script.sh &
    Thanks in advance!

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    11,158
    Why not put the email command in the script as the last command after all the other cruft has successfully (or not) completed?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Apr 2012
    Posts
    46
    Thanks!! it was so easy and clever!

Posting Permissions

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