Results 1 to 5 of 5

Thread: nohup

  1. #1
    Join Date
    Feb 2014
    Posts
    42
    Provided Answers: 1

    Unanswered: nohup

    Hi

    I am executing manually a script , i want to automate the process , pleas suggest on this

    every time i am giving the statement below manually

    msws003> nohup archive_database.sh &

    can we keep this "nohup archive_database.sh & " in one file called as "archive " and can i call it from cron to execute the script

    15 07 * * * /sybdump/scripts/UserScripts/dailyarchive -f arvchive

    please suggest

  2. #2
    Join Date
    Jun 2003
    Location
    West Palm Beach, FL
    Posts
    2,713

    Cool

    Quote Originally Posted by rmajeti View Post
    Hi

    I am executing manually a script , i want to automate the process , pleas suggest on this

    every time i am giving the statement below manually

    msws003> nohup archive_database.sh &

    can we keep this "nohup archive_database.sh & " in one file called as "archive " and can i call it from cron to execute the script

    15 07 * * * /sybdump/scripts/UserScripts/dailyarchive -f arvchive

    please suggest
    Just add your script to "cron", you DO NOT need "nohup".

    Code:
    15 07 * * * /sybdump/scripts/UserScripts/archive_database.sh
    The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

  3. #3
    Join Date
    Feb 2014
    Posts
    42
    Provided Answers: 1
    but could you tell me what is the use of nohup if it is used and if it is not used

  4. #4
    Join Date
    Sep 2009
    Location
    Ontario
    Posts
    1,057
    Provided Answers: 1
    Use nohup when you have a long running job and you don't want to stay connected to your ssh/telnet session.

  5. #5
    Join Date
    Apr 2014
    Posts
    7

    adding > /dev/null

    You can also add > /dev/null at the end of your crontab entry so that you don't get emailed every time there is an error or debugging issue.

Posting Permissions

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