Use nohup
if your background job takes a long time to finish or you just use SecureCRT or something like it login the server.
Redirect the stdout and stderr to /dev/null
to ignore the output.
nohup /path/to/your/script.sh > /dev/null 2>&1 &
More Related Contents:
- How can I shuffle the lines of a text file on the Unix command line or in a shell script?
- Test if remote TCP port is open from a shell script
- Getting the last argument passed to a shell script
- What is the difference between $@ and $* in shell scripts?
- Remove duplicate lines without sorting [duplicate]
- Run java jar file on a server as background process
- How does the #! shebang work?
- How can I negate the return-value of a process?
- Passing argument containing space in shell script
- ‘\r’: command not found [duplicate]
- Unix find command, what are the {} and \; for?
- How to exclude this / current / dot folder from find “type d”
- Losing newline after assigning grep result to a shell variable
- How to kill all processes matching a name?
- \r character in shell script
- Shell one liner to prepend to a file
- in mac always getting zsh: command not found: [closed]
- How to set environment variables from .env file
- Why 0 is true but false is 1 in the shell?
- Is there a “standard” format for command line/shell help text?
- How is % (percent sign) special in crontab?
- Write byte at address (hexedit/modify binary from the command line)
- sh read command eats backslashes in input?
- Redirecting/storing output of shell into GDB variable?
- Input from within shell script
- Which terminal command to get just IP address and nothing else?
- How to add text at the end of each line in unix
- How to print 5 consecutive lines after a pattern in file using awk [duplicate]
- how do I use the grep –include option for multiple file types?
- Batch convert latin-1 files to utf-8 using iconv