Method 1 in the terminal input command:
#./PSO > Pso.file 2>&1 &
Explanation: The PSO is run directly in the background and the terminal output is stored in the Pso.file file in the current directory.
When the client shuts down and then logs back to the server, the Pso.file file is viewed directly to see the execution result (life
Order: #cat Pso.file).
Method 2 in the Terminal input command:
# nohup/PSO > Pso.file 2>&1 &
Explanation: Nohup is not suspended meaning, will be the PSO directly in the background to run, and the terminal output stored in the current
Directory in the Pso.file file. After the client shuts down and logs back to the server, view the Pso.file directly
The file can look at the execution result (command: #cat pso.file).
iii. Common task management commands
# Jobs//view tasks, return task number N and process number
# BG%n//Turn the task numbered N to run in the background
# FG%n//Transfer the task number N to the foreground
# Ctrl+z//Suspend current task
# CTRL + C/End Current task