Post #79,502
2/5/03 12:11:38 PM
|

Bizarre grep differences...
Solaris vs. Linux:
Solaris: /export/home/sanderson/tmp/oracle/jdbc/oci8>grep get_env_handle OCIEnv.class /export/home/sanderson/tmp/oracle/jdbc/oci8>
Linux: sanderson@bd00402:$ grep get_env_handle /mnt/ds1d/home/tmp/oracle/jdbc/oci8/OCIEnv.class Binary file /mnt/ds1d/home/tmp/oracle/jdbc/oci8/OCIEnv.class matches sanderson@bd00402:$
I can open the file in Emacs on Solaris and find the 'get_env_handle' string as well.
Curiouser and curiouser...
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #79,521
2/5/03 1:00:52 PM
|

GLOB screwed up?
will work for cash and other incentives [link|http://home.tampabay.rr.com/boxley/resume/Resume.html|skill set]
questions, help? [link|mailto:pappas@catholic.org|email pappas at catholic.org]
|
Post #79,524
2/5/03 1:05:52 PM
|

Nope.
"strings OCIEnv.class | grep get_env_handle" works just fine.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #79,612
2/5/03 5:06:12 PM
|

if you give explicite path, does it work?as in ./file ?
will work for cash and other incentives [link|http://home.tampabay.rr.com/boxley/resume/Resume.html|skill set]
questions, help? [link|mailto:pappas@catholic.org|email pappas at catholic.org]
|
Post #79,617
2/5/03 5:11:39 PM
|

Path doesn't matter, globbing doesn't matter.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #79,522
2/5/03 1:04:39 PM
|

Tried any variations to have it search for it literally?
I know that the grep on solaris follows some bizarre rules some times...
Dunno if it means anything... I'd be interested to see in Linux for Sparc does this too...
[link|mailto:curley95@attbi.com|greg] - Grand-Master Artist in IT | [link|http://www.iwethey.org/ed_curry/|REMEMBER ED CURRY!] [link|http://pascal.rockford.com:8888/SSK@kQMsmc74S0Tw3KHQiRQmDem0gAIPAgM/edcurry/1//|ED'S GHOST SPEAKS!] | [link|http://www.eweek.com/article2/0,3959,857673,00.asp|Writing on wall, Microsoft to develop apps for Linux by 2004] | Heimatland Geheime Staatspolizei reminds: These [link|http://www.whitehouse.gov/pcipb/cyberstrategy-draft.html|Civilian General Orders], please memorize them. "Questions" will be asked at safety checkpoints. |
|
Post #79,595
2/5/03 4:19:36 PM
|

Since it's not reporting anything back...
...are you sure grep's not working - it's just the output got shipped to dev/null?
|
Post #79,605
2/5/03 4:49:54 PM
|

That's just grep's way of saying, "nothing found"
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #79,761
2/6/03 12:57:36 AM
|

Binary files -- different greps?
I note that your GNU/Linux output indicates that you're dealing with\r\na binary file. I suspect a difference in handling of this by your\r\ngreps. \r\n\r\n Check the Solaris grep's manpage and make sure there's not an option\r\nrequired to test binary files. Also try strings on the file\r\nfrom both sides to see if you can find the pattern string you're\r\nmatching on. \r\n\r\n Might also want to compile GNU grep on the Solaris box and see what\r\nit makes of this. \r\n
--\r\n Karsten M. Self [link|mailto:kmself@ix.netcom.com|kmself@ix.netcom.com]\r\n [link|http://kmself.home.netcom.com/|http://kmself.home.netcom.com/]\r\n What part of "gestalt" don't you understand?\r\n [link|http://twiki.iwethey.org/twiki/bin/view/Main/|TWikIWETHEY] -- an experiment in collective intelligence. Stupidity. Whatever.\r\n \r\n Keep software free. Oppose the CBDTPA. Kill S.2048 dead.\r\n[link|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html]\r\n
|
Post #79,824
2/6/03 10:39:59 AM
|

Already did that.
As noted, at least with using 'strings'. :-)
No Solaris grep option. So I suspect it might be \\0 processing or something odd like that.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #79,839
2/6/03 11:36:10 AM
|

Can it not find the expression with...
cat OCIEnv.class | grep get_env_handle
That'd help define if it is the \\0 processing then... (at least I am think it should)
Or compress it and then zcat it to grep... might bring out the flaw... ;)
[link|mailto:curley95@attbi.com|greg] - Grand-Master Artist in IT | [link|http://www.iwethey.org/ed_curry/|REMEMBER ED CURRY!] [link|http://pascal.rockford.com:8888/SSK@kQMsmc74S0Tw3KHQiRQmDem0gAIPAgM/edcurry/1//|ED'S GHOST SPEAKS!] | [link|http://www.eweek.com/article2/0,3959,857673,00.asp|Writing on wall, Microsoft to develop apps for Linux by 2004] | Heimatland Geheime Staatspolizei reminds: These [link|http://www.whitehouse.gov/pcipb/cyberstrategy-draft.html|Civilian General Orders], please memorize them. "Questions" will be asked at safety checkpoints. |
|
Post #79,850
2/6/03 12:04:12 PM
|

he did that using the strings command
will work for cash and other incentives [link|http://home.tampabay.rr.com/boxley/resume/Resume.html|skill set]
questions, help? [link|mailto:pappas@catholic.org|email pappas at catholic.org]
|
Post #79,889
2/6/03 2:02:11 PM
|

I know... but strings does some stripping...
and preprocesses the input for it. From most any manpage: strings - print the strings of printable characters in files. Specifically, it (should) only (does|do) sequences of 4 characters or longer... So, thank you very much... William Oxley! :)
[link|mailto:curley95@attbi.com|greg] - Grand-Master Artist in IT | [link|http://www.iwethey.org/ed_curry/|REMEMBER ED CURRY!] [link|http://pascal.rockford.com:8888/SSK@kQMsmc74S0Tw3KHQiRQmDem0gAIPAgM/edcurry/1//|ED'S GHOST SPEAKS!] | [link|http://www.eweek.com/article2/0,3959,857673,00.asp|Writing on wall, Microsoft to develop apps for Linux by 2004] | Heimatland Geheime Staatspolizei reminds: These [link|http://www.whitehouse.gov/pcipb/cyberstrategy-draft.html|Civilian General Orders], please memorize them. "Questions" will be asked at safety checkpoints. |
|