Hello all,
I wrote a script to direct all output to a log file, but I'd like to echo certain things during the process of the script to screen output if I can. I haven't been able to find anything related to this searching online, and the man page for sh is cryptic for me (as of now).
Sample of script:
I'd like to see about printing to screen
I appreciate all responses in advance!
I wrote a script to direct all output to a log file, but I'd like to echo certain things during the process of the script to screen output if I can. I haven't been able to find anything related to this searching online, and the man page for sh is cryptic for me (as of now).
Sample of script:
Code:
#!/bin/sh
exec > /path/to/logfile.log
exec 2>&1
rsync command
echo "Sync process started"
at the start of the rsync command in the script, and something about it completing after the command executes, but have that print to screen, rather than the log file.I appreciate all responses in advance!