i am having problem in suppressing the output to display on the screen.

below the output that i am getting.
hfdkjd...OK
hadfhkj...OK

code :
#!/bin/bash

ASMM/bin/xacct test -i

i have also tried by redirecting into the file, but to no avail. plz help me with this

Redirection works on each output stream from the program. So, for instance, if your called program writes to stdout and stderr then you need to capture and redirect both.
Example:

# Redirect only stdout
some/bin/program >/dev/null

# Redirect only stderr
some/bin/program 2>/dev/null

# Redirect both stdout and stderr (to individual locations)
some/bin/program >/dev/null 2>/dev/null

# Or, if you want them to go to the same place
some/bin/program >/dev/null 2>&1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.