trying to view contents of an existing script

root#pwd
/opt/tools

root# cat check_traffic
/opt/tools/utils/commands $1 /opt/tools/utils/DIR/check_traffic

root# cat /opt/tools/utils/DIR/check_traffic
gew "check_traffic -v"

Hi above script works for checking traffic for an ip address im trying to view the check_traffic script by cat'ing it but I get the above error, can anyone help please? im logged in as root on solaris 8

What error?

The contents of the script are:

gew "check_traffic -v"

Not an error. Assume that code is run by username user1, as root:

su - user1
user1>  which gew
exit

gew is a command or an alias. On safe systems root should never have all of those oddball aliases and PATH values assigned. You have to go to whoever runs it to decode it.

no, there is a lot more involved to checking the trafic i.e if I was to do this manually I would first have to use ssh and then telnet, so I know the above is wrong

Did you try Jim's suggestions? which gew

--ahamed

as standard user

# which gew
no gew in /opt/xdf/bin /opt/xdf-4.3.2/bin /bin /opt/tools /opt/tools/swdl/swdl-1.7.6p1/bin /usr/sbin /usr/local/bin /usr/local/sbin /opt/rsync-2.6.2/bin