Thread
:
avoid displaying errors while executing a script
View Single Post
#
3
(
permalink
)
10-30-2007, 01:02 AM
vikas027
Member
User
Join Date: Oct 2007
My distro: Linux RHEL 5
Posts: 33
Rep Power:
0
Quote:
Originally Posted by
nixcraft
Try to redirect output or error device:
Code:
/path/to/command > /dev/null
Or better:
Code:
/path/to/command >/dev/null 2>&1
Its giving error,
I m running
Code:
/home/test/script.sh > /dev/null 2>$1
vikas027
View Public Profile
Send a private message to vikas027
Find all posts by vikas027