Skip to main content
code block
Source Link
HalosGhost
  • 4.9k
  • 10
  • 37
  • 42

Redirect all the output as a block.

( yum -y update

service restart nginx

yum install atop

cat /var/log/somelog.log > /home/cron/php/script

) > /dev/null 2>&1

(
   yum -y update

   service restart nginx

   yum install atop

   cat /var/log/somelog.log > /home/cron/php/script

) > /dev/null 2>&1

Redirect all the output as a block.

( yum -y update

service restart nginx

yum install atop

cat /var/log/somelog.log > /home/cron/php/script

) > /dev/null 2>&1

Redirect all the output as a block.

(
   yum -y update

   service restart nginx

   yum install atop

   cat /var/log/somelog.log > /home/cron/php/script

) > /dev/null 2>&1
Source Link
LinuxGuru
  • 339
  • 1
  • 2

Redirect all the output as a block.

( yum -y update

service restart nginx

yum install atop

cat /var/log/somelog.log > /home/cron/php/script

) > /dev/null 2>&1