Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

output to log file bash

#!/bin/bash
echo "This logs to where I want, but using echo" > /var/log/mycustomlog

OR

#!/bin/bash
echo "I will just append to my custom log file" >> /var/log/customlog
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #output #log #file #bash
ADD COMMENT
Topic
Name
9+7 =