weilrahc
09-16-2000, 10:08 AM
i am writing a bash shell script and i don't want some commands to echo to the screen. How can i prevent this from occurring?
| //flex table opened by JP
Click to See Complete Forum and Search --> : don't want command to echo in my shell script weilrahc 09-16-2000, 10:08 AM i am writing a bash shell script and i don't want some commands to echo to the screen. How can i prevent this from occurring? howste 09-18-2000, 02:23 PM What's a bash shell script? If it's anything like a DOS batch file you should be able to do something like ECHO OFF. Otherwise, you might try to get the window to run minimized so the users wouldn't see it. Steve linux_guru 09-18-2000, 06:39 PM I dont use that crappy BASH, I use ksh (korn shell), but it should be the same: You need to redirect std output & std error to /dev/null. ie: /usr/bin/some_command > /dev/null 2>&1 [This message has been edited by linux_guru (edited 09-18-2000).] SysOpt.com
Copyright Internet.com Inc. All Rights Reserved. |