Hi all,
i have been trying to direct o/p of one command to file, but i don get any entries in file but ouptput get displayed on command prompt.
I have tried many options but still , it does not work.
please guide.
here is the command
-bash-3.00$ /usr/local/bin/sudo lpstat -p | grep -i "not-found" 2> file11
Password:
Failed to get printer info for rmp_markpoint: not-found
Failed to get printer info for rp_rmp_fin_tst: not-found
Failed to get printer info for rp_rmp_pur_tst: not-found
Failed to get printer info for rp_rmp_hr_tst: not-found
Failed to get printer info for rp_rmp_muf_tst: not-found
Failed to get printer info for rp_itt_rac_tst: not-found
Failed to get printer info for rp_rmp_fie_7417dn: not-found
I see the output diplayed but nothig goes in file11.
remember "not-found" is error message.
please suggest me which option will do the same.
Thanks in advance.